Skip to content

Commit 9bca3a5

Browse files
committed
Update tracing-subscriber dependency
1 parent bbcd30a commit 9bca3a5

File tree

5 files changed

+10
-84
lines changed

5 files changed

+10
-84
lines changed

Cargo.lock

Lines changed: 6 additions & 74 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

surface-dtx-daemon/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ tokio = { version = "1.18.0", features = ["fs", "sync", "process", "signal", "io
2727
toml = "0.5.9"
2828
serde_ignored = "0.1.2"
2929
tracing = "0.1.34"
30-
tracing-subscriber = "0.2.20"
30+
tracing-subscriber = { version = "0.3.11", features = ["std", "env-filter"] }
3131

3232
[build-dependencies]
3333
clap = "2.33.3"

surface-dtx-daemon/src/main.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,10 @@ fn bootstrap() -> Result<Config> {
4040
};
4141

4242
// set up logger
43-
let ansi = atty::is(atty::Stream::Stdout);
44-
4543
let filter = tracing_subscriber::EnvFilter::from_env("SDTXD_LOG")
4644
.add_directive(tracing::Level::from(config.log.level).into());
4745

48-
let fmt = tracing_subscriber::fmt::format::PrettyFields::new()
49-
.with_ansi(ansi);
46+
let fmt = tracing_subscriber::fmt::format::PrettyFields::new();
5047

5148
let subscriber = tracing_subscriber::fmt()
5249
.fmt_fields(fmt)

surface-dtx-userd/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ serde_ignored = "0.1.2"
2222
tokio = { version = "1.18.0", features = ["macros", "rt", "signal"] }
2323
toml = "0.5.9"
2424
tracing = "0.1.34"
25-
tracing-subscriber = "0.2.20"
25+
tracing-subscriber = { version = "0.3.11", features = ["std", "env-filter"] }
2626

2727
[build-dependencies]
2828
clap = "2.33.3"

surface-dtx-userd/src/main.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,10 @@ fn bootstrap() -> Result<Config> {
2222
};
2323

2424
// set up logger
25-
let ansi = atty::is(atty::Stream::Stdout);
26-
2725
let filter = tracing_subscriber::EnvFilter::from_env("SDTXU_LOG")
2826
.add_directive(tracing::Level::from(config.log.level).into());
2927

30-
let fmt = tracing_subscriber::fmt::format::PrettyFields::new()
31-
.with_ansi(ansi);
28+
let fmt = tracing_subscriber::fmt::format::PrettyFields::new();
3229

3330
let subscriber = tracing_subscriber::fmt()
3431
.fmt_fields(fmt)

0 commit comments

Comments
 (0)