From 61c9f68332ffcea92eb2dc0db0f6b3affb36d424 Mon Sep 17 00:00:00 2001 From: Falko Richter Date: Thu, 11 Jul 2024 09:25:22 +0200 Subject: [PATCH] logging actor errors as errors --- bffhd/actors/process.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bffhd/actors/process.rs b/bffhd/actors/process.rs index 330325f..a9217f9 100644 --- a/bffhd/actors/process.rs +++ b/bffhd/actors/process.rs @@ -71,17 +71,17 @@ impl Actor for Process { } } Ok(retv) => { - tracing::warn!(%name, ?state, code=?retv.status, + tracing::error!(%name, ?state, code=?retv.status, "Actor returned nonzero exitcode" ); if !retv.stderr.is_empty() { let errstr = String::from_utf8_lossy(&retv.stderr); for line in errstr.lines() { - tracing::warn!(%name, %line, "actor stderr"); + tracing::error!(%name, %line, "actor stderr"); } } } - Err(error) => tracing::warn!(%name, ?error, "process actor failed to run cmd"), + Err(error) => tracing::error!(%name, ?error, "process actor failed to run cmd"), } }) }