From 638991612392d9eb16b4920cc7ba42fcc3f1082c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jochen=20G=C3=B6rtler?= Date: Tue, 14 Jun 2022 15:37:26 +0200 Subject: [PATCH] fix(runtime): use `warn!` instead of `error!` (#271) --- src/runtime/scope.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/runtime/scope.rs b/src/runtime/scope.rs index 15b0ffe74..d336ea852 100644 --- a/src/runtime/scope.rs +++ b/src/runtime/scope.rs @@ -238,7 +238,7 @@ impl RuntimeScope { Ok(()) } Err(e) => { - log::error!( + log::warn!( "{} exited with error: {}", format!("Task {:x}", child_scope.id().as_fields().0), e @@ -281,7 +281,7 @@ impl RuntimeScope { Ok(()) } Err(e) => { - log::error!("{} exited with error: {}", actor.name(), e); + log::warn!("{} exited with error: {}", actor.name(), e); let err_str = e.to_string(); supervisor_addr.send(Report::Error(ErrorReport::new( actor, @@ -322,7 +322,7 @@ impl RuntimeScope { Ok(res) => match res { Ok(_) => Ok(()), Err(e) => { - log::error!("{} exited with error: {}", actor.name(), e); + log::warn!("{} exited with error: {}", actor.name(), e); Err(RuntimeError::ActorError(e.to_string())) } },