diff options
author | Matthias Beyer <matthias.beyer@ifm.com> | 2022-04-22 20:59:23 +0200 |
---|---|---|
committer | Matthias Beyer <matthias.beyer@ifm.com> | 2022-04-22 20:59:23 +0200 |
commit | 000afbf49d4fed26ba8fca05878ab1b571ba5916 (patch) | |
tree | eb778fdbf137324ce8170711d6de0a774f0e54ad | |
parent | 11b361d02e2fd9201660e3ac3dadf88cc15cfbc4 (diff) |
Fix: replace "log" with "tracing"
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
-rw-r--r-- | Cargo.lock | 2 | ||||
-rw-r--r-- | plugins/plugin_sysstat/Cargo.toml | 2 | ||||
-rw-r--r-- | plugins/plugin_sysstat/src/plugin.rs | 4 |
3 files changed, 4 insertions, 4 deletions
@@ -2277,7 +2277,6 @@ version = "0.1.0" dependencies = [ "async-trait", "futures", - "log", "miette", "serde", "sysinfo", @@ -2286,6 +2285,7 @@ dependencies = [ "tokio", "tokio-util 0.7.0", "toml", + "tracing", ] [[package]] diff --git a/plugins/plugin_sysstat/Cargo.toml b/plugins/plugin_sysstat/Cargo.toml index 40611451..9d6f8ca4 100644 --- a/plugins/plugin_sysstat/Cargo.toml +++ b/plugins/plugin_sysstat/Cargo.toml @@ -7,13 +7,13 @@ edition = "2021" [dependencies] async-trait = "0.1" -log = "0.4" serde = { version = "1.0.136", features = ["derive"] } miette = "4.4" tokio = { version = "1", features = ["macros", "rt", "sync", "time"] } tokio-util = "0.7.0" sysinfo = "0.23" futures = "0.3" +tracing = "0.1" tedge_api = { path = "../../crates/core/tedge_api" } tedge_lib = { path = "../../crates/core/tedge_lib" } diff --git a/plugins/plugin_sysstat/src/plugin.rs b/plugins/plugin_sysstat/src/plugin.rs index a7ae666a..c2d56323 100644 --- a/plugins/plugin_sysstat/src/plugin.rs +++ b/plugins/plugin_sysstat/src/plugin.rs @@ -4,9 +4,9 @@ use async_trait::async_trait; use tedge_api::Address; use tedge_lib::measurement::Measurement; use tokio::sync::Mutex; - use tedge_api::Plugin; use tedge_api::PluginError; +use tracing::debug; use crate::config::SysStatConfig; use crate::main::State; @@ -93,7 +93,7 @@ impl Plugin for SysStatPlugin { } async fn shutdown(&mut self) -> Result<(), PluginError> { - log::debug!("Shutting down sysstat plugin!"); + debug!("Shutting down sysstat plugin!"); while let Some(stopper) = self.stoppers.pop() { stopper |