Skip to content

Commit 14731ac

Browse files
committed
Test and clippy fixes
1 parent 31768c1 commit 14731ac

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

src/telemetry.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
use crate::configuration::LogSettings;
88
use tracing::error;
9-
use tracing_subscriber::{fmt, fmt::Formatter, prelude::*, Layer};
9+
use tracing_subscriber::{fmt, prelude::*, Layer};
1010

1111
pub fn configure_tracing(conf: &LogSettings) {
1212
// Store all the tracing layers in an array to allow a dynamic configuration

tests/api/helpers.rs

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,18 @@ use uuid::Uuid;
2424
static TRACING: Lazy<()> = Lazy::new(|| {
2525
let mut settings = LogSettings {
2626
tracing_level: "info".into(),
27-
log_output_file: "debug".into(),
28-
enable_console_log: Some(true),
29-
console_tracing_level: Some("debug".to_string()),
27+
journald: Some(false),
28+
pretty_log: Some(true),
3029
};
3130

3231
if std::env::var("TEST_LOG").is_ok() {
3332
let level = std::env::var("TEST_LOG").expect("Failed to read the content of TEST_LOG var");
3433
match level.as_str() {
35-
"info" => settings.console_tracing_level = Some("info".into()),
36-
"debug" => settings.console_tracing_level = Some("debug".into()),
37-
"warn" => settings.console_tracing_level = Some("warn".into()),
38-
"error" => settings.console_tracing_level = Some("error".into()),
39-
&_ => settings.console_tracing_level = Some("none".into()),
34+
"info" => settings.tracing_level = "info".into(),
35+
"debug" => settings.tracing_level = "debug".into(),
36+
"warn" => settings.tracing_level = "warn".into(),
37+
"error" => settings.tracing_level = "error".into(),
38+
&_ => settings.tracing_level = "none".into(),
4039
}
4140

4241
if level != "none" {

0 commit comments

Comments
 (0)