Mention server in worker log messages
This commit is contained in:
parent
76ab00c47a
commit
b59b4f8463
3 changed files with 5 additions and 5 deletions
|
|
@ -109,7 +109,7 @@ impl Worker {
|
|||
match server.post_status(true, None).await {
|
||||
Ok(response) => response.run,
|
||||
Err(e) => {
|
||||
warn!("Error requesting run:\n{e:?}");
|
||||
warn!("Error requesting run from {}:\n{e:?}", server.name);
|
||||
None
|
||||
}
|
||||
}
|
||||
|
|
@ -119,7 +119,7 @@ impl Worker {
|
|||
match server.post_status(false, Some(run)).await {
|
||||
Ok(_) => true,
|
||||
Err(e) => {
|
||||
warn!("Error submitting run:\n{e:?}");
|
||||
warn!("Error submitting run to {}:\n{e:?}", server.name);
|
||||
false
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@ impl RunInProgress {
|
|||
let run = match result {
|
||||
Ok(outcome) => outcome,
|
||||
Err(e) => {
|
||||
error!("Error during run:\n{e:?}");
|
||||
error!("Error during run for {}:\n{e:?}", server.name);
|
||||
self.log_stderr("Internal error:".to_string());
|
||||
self.log_stderr(format!("{e:?}"));
|
||||
Some(Finished {
|
||||
|
|
|
|||
|
|
@ -122,7 +122,7 @@ impl Server {
|
|||
}
|
||||
|
||||
async fn ping(&self) -> somehow::Result<()> {
|
||||
debug!("Pinging server");
|
||||
debug!("Pinging {}", self.name);
|
||||
let guard = self.status_lock.lock().await;
|
||||
|
||||
let response = self.post_status(false, None).await?;
|
||||
|
|
@ -137,7 +137,7 @@ impl Server {
|
|||
loop {
|
||||
match self.ping().await {
|
||||
Ok(()) => {}
|
||||
Err(e) => warn!("Error talking to server:\n{e:?}"),
|
||||
Err(e) => warn!("Error talking to {}:\n{e:?}", self.name),
|
||||
}
|
||||
|
||||
tokio::time::sleep(self.config.ping).await;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue