diff options
author | initard <solo@softwareag.com> | 2022-03-02 15:28:36 +0000 |
---|---|---|
committer | initard <solo@softwareag.com> | 2022-03-11 15:26:44 +0000 |
commit | 93dabe8a9f69cd4f5b73e778d07fc8a8a22a83d9 (patch) | |
tree | 62238295cc876646839a4ee52ac73fb63aa086a8 /crates/core/tedge_agent/src/agent.rs | |
parent | c2bdfde1e2c1fc7e53aa5aa0f8a595422aeb7897 (diff) |
error handling on tedge-agent start up
Signed-off-by: initard <solo@softwareag.com>
Co-authored-by: Pradeep Kumar K J <pradeepkumar.kj@sofwareag.com>
Diffstat (limited to 'crates/core/tedge_agent/src/agent.rs')
-rw-r--r-- | crates/core/tedge_agent/src/agent.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/crates/core/tedge_agent/src/agent.rs b/crates/core/tedge_agent/src/agent.rs index 0e8fcb89..4a19d3d2 100644 --- a/crates/core/tedge_agent/src/agent.rs +++ b/crates/core/tedge_agent/src/agent.rs @@ -22,7 +22,7 @@ use tedge_config::{ TEdgeConfigLocation, TmpPathDefaultSetting, DEFAULT_LOG_PATH, DEFAULT_RUN_PATH, }; use tokio::sync::Mutex; -use tracing::{debug, error, info, instrument}; +use tracing::{debug, error, info, instrument, warn}; const SM_PLUGINS: &str = "sm-plugins"; @@ -234,7 +234,7 @@ impl SmAgent { )?)); if plugins.lock().await.empty() { - error!( + warn!( "{}", AgentError::NoPlugins { plugins_path: sm_plugins_path, @@ -607,7 +607,6 @@ fn get_default_plugin( #[cfg(test)] mod tests { - use anyhow::Result; use std::io::Write; use std::path::PathBuf; |