Skip to content

Commit

Permalink
Modify error comment to specify controller and agent restarting
Browse files Browse the repository at this point in the history
  • Loading branch information
kate-goldenring committed Sep 10, 2021
1 parent cb0b9ba commit e8c59a9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion agent/src/util/config_action.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ async fn handle_config(
info!("handle_config - watcher started");
} else {
return Err(anyhow::anyhow!(
"Configuration watcher restarted - throwing error"
"Configuration watcher restarted - throwing error to restart agent"
));
}
}
Expand Down
2 changes: 1 addition & 1 deletion controller/src/util/instance_action.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ async fn handle_instance(
info!("handle_instance - watcher started");
} else {
return Err(anyhow::anyhow!(
"Instance watcher restarted - throwing error"
"Instance watcher restarted - throwing error to restart controller"
));
}
}
Expand Down
4 changes: 3 additions & 1 deletion controller/src/util/node_watcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,9 @@ impl NodeWatcher {
if *first_event {
info!("handle_node - watcher started");
} else {
return Err(anyhow::anyhow!("Node watcher restarted - throwing error"));
return Err(anyhow::anyhow!(
"Node watcher restarted - throwing error to restart controller"
));
}
}
};
Expand Down
4 changes: 3 additions & 1 deletion controller/src/util/pod_watcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,9 @@ impl BrokerPodWatcher {
pods
);
} else {
return Err(anyhow::anyhow!("Pod watcher restarted - throwing error"));
return Err(anyhow::anyhow!(
"Pod watcher restarted - throwing error to restart controller"
));
}
}
};
Expand Down

0 comments on commit e8c59a9

Please sign in to comment.