Upgrade tracing-subscriber and disable ANSI sanitization
Browse files at this commit2b58e03d30f7c6b20b7042455e68b625d85bb071Parent: d4b44073 changed files +15 -39
- Cargo.lock +13 -35
- Cargo.toml +1 -4
- src/main.rs +1 -0
Cargo.lockmodified+13 -35
| @@ -2092,11 +2092,11 @@ dependencies = [ | |||
| 2092 | 2092 | ||
| 2093 | [[package]] | 2093 | [[package]] |
| 2094 | name = "matchers" | 2094 | name = "matchers" |
| 2095 | -version = "0.1.0" | 2095 | +version = "0.2.0" |
| 2096 | source = "registry+https://github.com/rust-lang/crates.io-index" | 2096 | source = "registry+https://github.com/rust-lang/crates.io-index" |
| 2097 | -checksum = "8263075bb86c5a1b1427b5ae862e8889656f126e9f77c484496e8b47cf5c5558" | 2097 | +checksum = "d1525a2a28c7f4fa0fc98bb91ae755d1e2d1505079e05539e35bc876b5d65ae9" |
| 2098 | dependencies = [ | 2098 | dependencies = [ |
| 2099 | - "regex-automata 0.1.10", | 2099 | + "regex-automata", |
| 2100 | ] | 2100 | ] |
| 2101 | 2101 | ||
| 2102 | [[package]] | 2102 | [[package]] |
| @@ -2346,12 +2346,11 @@ dependencies = [ | |||
| 2346 | 2346 | ||
| 2347 | [[package]] | 2347 | [[package]] |
| 2348 | name = "nu-ansi-term" | 2348 | name = "nu-ansi-term" |
| 2349 | -version = "0.46.0" | 2349 | +version = "0.50.3" |
| 2350 | source = "registry+https://github.com/rust-lang/crates.io-index" | 2350 | source = "registry+https://github.com/rust-lang/crates.io-index" |
| 2351 | -checksum = "77a8165726e8236064dbb45459242600304b42a5ea24ee2948e18e023bf7ba84" | 2351 | +checksum = "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5" |
| 2352 | dependencies = [ | 2352 | dependencies = [ |
| 2353 | - "overload", | 2353 | + "windows-sys 0.61.2", |
| 2354 | - "winapi", | ||
| 2355 | ] | 2354 | ] |
| 2356 | 2355 | ||
| 2357 | [[package]] | 2356 | [[package]] |
| @@ -2636,12 +2635,6 @@ dependencies = [ | |||
| 2636 | "pin-project-lite", | 2635 | "pin-project-lite", |
| 2637 | ] | 2636 | ] |
| 2638 | 2637 | ||
| 2639 | -[[package]] | ||
| 2640 | -name = "overload" | ||
| 2641 | -version = "0.1.1" | ||
| 2642 | -source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| 2643 | -checksum = "b15813163c1d831bf4a13c3610c05c0d03b39feb07f7e09fa234dac9b15aaf39" | ||
| 2644 | - | ||
| 2645 | [[package]] | 2638 | [[package]] |
| 2646 | name = "owo-colors" | 2639 | name = "owo-colors" |
| 2647 | version = "3.5.0" | 2640 | version = "3.5.0" |
| @@ -2987,7 +2980,7 @@ dependencies = [ | |||
| 2987 | "rand", | 2980 | "rand", |
| 2988 | "rand_chacha", | 2981 | "rand_chacha", |
| 2989 | "rand_xorshift", | 2982 | "rand_xorshift", |
| 2990 | - "regex-syntax 0.8.10", | 2983 | + "regex-syntax", |
| 2991 | "rusty-fork", | 2984 | "rusty-fork", |
| 2992 | "tempfile", | 2985 | "tempfile", |
| 2993 | "unarray", | 2986 | "unarray", |
| @@ -3171,17 +3164,8 @@ checksum = "e10754a14b9137dd7b1e3e5b0493cc9171fdd105e0ab477f51b72e7f3ac0e276" | |||
| 3171 | dependencies = [ | 3164 | dependencies = [ |
| 3172 | "aho-corasick", | 3165 | "aho-corasick", |
| 3173 | "memchr", | 3166 | "memchr", |
| 3174 | - "regex-automata 0.4.14", | 3167 | + "regex-automata", |
| 3175 | - "regex-syntax 0.8.10", | 3168 | + "regex-syntax", |
| 3176 | -] | ||
| 3177 | - | ||
| 3178 | -[[package]] | ||
| 3179 | -name = "regex-automata" | ||
| 3180 | -version = "0.1.10" | ||
| 3181 | -source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| 3182 | -checksum = "6c230d73fb8d8c1b9c0b3135c5142a8acee3a0558fb8db5cf1cb65f8d7862132" | ||
| 3183 | -dependencies = [ | ||
| 3184 | - "regex-syntax 0.6.29", | ||
| 3185 | ] | 3169 | ] |
| 3186 | 3170 | ||
| 3187 | [[package]] | 3171 | [[package]] |
| @@ -3192,15 +3176,9 @@ checksum = "6e1dd4122fc1595e8162618945476892eefca7b88c52820e74af6262213cae8f" | |||
| 3192 | dependencies = [ | 3176 | dependencies = [ |
| 3193 | "aho-corasick", | 3177 | "aho-corasick", |
| 3194 | "memchr", | 3178 | "memchr", |
| 3195 | - "regex-syntax 0.8.10", | 3179 | + "regex-syntax", |
| 3196 | ] | 3180 | ] |
| 3197 | 3181 | ||
| 3198 | -[[package]] | ||
| 3199 | -name = "regex-syntax" | ||
| 3200 | -version = "0.6.29" | ||
| 3201 | -source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| 3202 | -checksum = "f162c6dd7b008981e4d40210aca20b4bd0f9b60ca9271061b07f78537722f2e1" | ||
| 3203 | - | ||
| 3204 | [[package]] | 3182 | [[package]] |
| 3205 | name = "regex-syntax" | 3183 | name = "regex-syntax" |
| 3206 | version = "0.8.10" | 3184 | version = "0.8.10" |
| @@ -3830,14 +3808,14 @@ dependencies = [ | |||
| 3830 | 3808 | ||
| 3831 | [[package]] | 3809 | [[package]] |
| 3832 | name = "tracing-subscriber" | 3810 | name = "tracing-subscriber" |
| 3833 | -version = "0.3.19" | 3811 | +version = "0.3.23" |
| 3834 | source = "registry+https://github.com/rust-lang/crates.io-index" | 3812 | source = "registry+https://github.com/rust-lang/crates.io-index" |
| 3835 | -checksum = "e8189decb5ac0fa7bc8b96b7cb9b2701d60d48805aca84a238004d665fcc4008" | 3813 | +checksum = "cb7f578e5945fb242538965c2d0b04418d38ec25c79d160cd279bf0731c8d319" |
| 3836 | dependencies = [ | 3814 | dependencies = [ |
| 3837 | "matchers", | 3815 | "matchers", |
| 3838 | "nu-ansi-term", | 3816 | "nu-ansi-term", |
| 3839 | "once_cell", | 3817 | "once_cell", |
| 3840 | - "regex", | 3818 | + "regex-automata", |
| 3841 | "sharded-slab", | 3819 | "sharded-slab", |
| 3842 | "smallvec", | 3820 | "smallvec", |
| 3843 | "thread_local", | 3821 | "thread_local", |
Cargo.tomlmodified+1 -4
| @@ -22,10 +22,7 @@ insta = "1.46.3" | |||
| 22 | serde = { version = "1.0.228", features = ["derive"] } | 22 | serde = { version = "1.0.228", features = ["derive"] } |
| 23 | serde_json = "1.0.149" | 23 | serde_json = "1.0.149" |
| 24 | tracing = { version = "0.1.44", features = ["max_level_trace", "release_max_level_debug"] } | 24 | tracing = { version = "0.1.44", features = ["max_level_trace", "release_max_level_debug"] } |
| 25 | -# 0.3.20 filters out all ANSI codes to "fix a security issue" while also breaking | 25 | +tracing-subscriber = { version = "0.3.23", features = ["env-filter"] } |
| 26 | -# everyone who relied on them for color output, with no fallback available. | ||
| 27 | -# https://github.com/tokio-rs/tracing/issues/3378 | ||
| 28 | -tracing-subscriber = { version = "=0.3.19", features = ["env-filter"] } | ||
| 29 | tracy-client = { version = "0.18.4", default-features = false } | 26 | tracy-client = { version = "0.18.4", default-features = false } |
| 30 | 27 | ||
| 31 | [workspace.dependencies.smithay] | 28 | [workspace.dependencies.smithay] |
src/main.rsmodified+1 -0
| @@ -55,6 +55,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> { | |||
| 55 | .compact() | 55 | .compact() |
| 56 | .with_writer(io::stderr) | 56 | .with_writer(io::stderr) |
| 57 | .with_env_filter(env_filter) | 57 | .with_env_filter(env_filter) |
| 58 | + .with_ansi_sanitization(false) | ||
| 58 | .init(); | 59 | .init(); |
| 59 | 60 | ||
| 60 | if env::var_os("NOTIFY_SOCKET").is_some() { | 61 | if env::var_os("NOTIFY_SOCKET").is_some() { |