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 /plugins | |
parent | a84fdaa2cced13628cfbc7327ed0a897da39a6ce (diff) |
plugin_avg: Replace log with tracing
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/plugin_avg/Cargo.toml | 2 | ||||
-rw-r--r-- | plugins/plugin_avg/src/lib.rs | 2 |
2 files changed, 2 insertions, 2 deletions
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) |