Mention server in worker log messages
This commit is contained in:
parent
76ab00c47a
commit
b59b4f8463
3 changed files with 5 additions and 5 deletions
|
|
@ -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