diff options
author | Didier Wenzek <didier.wenzek@acidalie.com> | 2021-09-16 09:00:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-16 09:00:12 +0100 |
commit | 85e0037c03f6fc813471bf92fd1c5039a7be93a1 (patch) | |
tree | dc0ee11aca59ccd965097a35fb44d77566806359 /Cargo.lock | |
parent | 2ab0a7c44f816e532f1bfae8eb6208ca2398b49e (diff) |
Feature/cit 508/simplify logging (#427)
* [CIT-508] Remove dependency to the `log` and `env_logger` crates
* [CIT-508] Set tracing env filter RUST_LOG
* [CIT-508] Set the log level using a cli option
An alternative could have been to use an env filter configured with
`RUST_LOG`. But this has a large impact on the executable size (+600k)
without true benefist.
* [CIT-508] Cargo fmt
* [CIT-508] Set tracing span for the agent and the mapper
* [CIT-508] Move the tracing_subscriber initialisation to common/tedge_utils
Co-authored-by: Wenzek <diw@softwareag.com>
Diffstat (limited to 'Cargo.lock')
-rw-r--r-- | Cargo.lock | 28 |
1 files changed, 4 insertions, 24 deletions
@@ -684,19 +684,6 @@ dependencies = [ [[package]] name = "env_logger" -version = "0.8.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a19187fea3ac7e84da7dacf48de0c45d63c6a76f9490dae389aead16c243fce3" -dependencies = [ - "atty", - "humantime 2.1.0", - "log", - "regex", - "termcolor", -] - -[[package]] -name = "env_logger" version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0b2cf0344971ee6c64c31be0d530793fba457d322dfec2810c453d0ef228f9c3" @@ -737,10 +724,10 @@ name = "flockfile" version = "0.3.1" dependencies = [ "assert_matches", - "log", "nix", "tempfile", "thiserror", + "tracing", ] [[package]] @@ -1396,8 +1383,6 @@ dependencies = [ "mockall", "rand 0.8.4", "rumqttc", - "rumqttd", - "rumqttlog", "serde", "tedge_utils", "thiserror", @@ -1676,9 +1661,7 @@ dependencies = [ "anyhow", "assert_matches", "async-trait", - "env_logger 0.9.0", "json_sm", - "log", "serde", "serde_json", "structopt", @@ -1686,6 +1669,7 @@ dependencies = [ "tempfile", "thiserror", "tokio", + "tracing", "url", ] @@ -2536,11 +2520,9 @@ dependencies = [ "async-trait", "chrono", "clock", - "env_logger 0.9.0", "flockfile", "futures", "json_sm", - "log", "mockall", "mqtt_client", "once_cell", @@ -2557,7 +2539,6 @@ dependencies = [ "tokio", "toml", "tracing", - "tracing-subscriber", ] [[package]] @@ -2603,11 +2584,9 @@ dependencies = [ "chrono", "clock", "csv", - "env_logger 0.8.4", "flockfile", "futures", "json_sm", - "log", "mockall", "mqtt_client", "reqwest", @@ -2624,7 +2603,6 @@ dependencies = [ "tokio", "tokio-test", "tracing", - "tracing-subscriber", ] [[package]] @@ -2647,6 +2625,8 @@ dependencies = [ "tempfile", "thiserror", "tokio", + "tracing", + "tracing-subscriber", ] [[package]] |