diff options
author | Matthias Beyer <matthias.beyer@ifm.com> | 2022-04-25 14:41:18 +0200 |
---|---|---|
committer | Matthias Beyer <matthias.beyer@ifm.com> | 2022-04-25 14:43:45 +0200 |
commit | 813f5040cf2e57c445ede07c5df71597a784f870 (patch) | |
tree | 69e826362f073b0b673d63ce7f11af86b6faa137 | |
parent | a84fdaa2cced13628cfbc7327ed0a897da39a6ce (diff) |
plugin_avg: Replace log with tracing
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
-rw-r--r-- | Cargo.lock | 2 | ||||
-rw-r--r-- | plugins/plugin_avg/Cargo.toml | 2 | ||||
-rw-r--r-- | plugins/plugin_avg/src/lib.rs | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -2135,13 +2135,13 @@ version = "0.1.0" dependencies = [ "async-trait", "humantime-serde", - "log", "miette", "serde", "tedge_api", "tedge_lib", "tokio", "tokio-util 0.7.0", + "tracing", ] [[package]] diff --git a/plugins/plugin_avg/Cargo.toml b/plugins/plugin_avg/Cargo.toml index e62019ed..26b8ebb1 100644 --- a/plugins/plugin_avg/Cargo.toml +++ b/plugins/plugin_avg/Cargo.toml @@ -8,11 +8,11 @@ edition = "2021" [dependencies] async-trait = "0.1" humantime-serde = "1" -log = { version = "0.4", features = ["serde"] } miette = "4.4" serde = { version = "1.0.136", features = ["derive"] } tokio = { version = "1", features = ["macros", "rt", "sync", "time"] } tokio-util = "0.7.0" +tracing = "0.1" tedge_api = { path = "../../crates/core/tedge_api" } tedge_lib = { path = "../../crates/core/tedge_lib" } diff --git a/plugins/plugin_avg/src/lib.rs b/plugins/plugin_avg/src/lib.rs index 331a7d10..4fe04dae 100644 --- a/plugins/plugin_avg/src/lib.rs +++ b/plugins/plugin_avg/src/lib.rs @@ -135,7 +135,7 @@ impl Handle<Measurement> for AvgPlugin { let value = match message.value() { MeasurementValue::Float(f) => Some(f), other => { - log::error!( + tracing::error!( "Received measurement that I cannot handle: {} = {}", message.name(), measurement_to_str(other) |