strip ansi escapes from systemd-managed daemon logs
This commit is contained in:
parent
b9d315dcd9
commit
5f197a38ee
11 changed files with 44 additions and 0 deletions
|
|
@ -55,6 +55,10 @@ pub fn init_tracing() {
|
|||
tracing_subscriber::EnvFilter::try_from_env("RUST_LOG")
|
||||
.unwrap_or_else(|_| tracing_subscriber::EnvFilter::new("info")),
|
||||
)
|
||||
// This is a systemd-managed daemon — stdout always goes to journald,
|
||||
// never a human terminal, and journald doesn't strip ANSI escapes:
|
||||
// they land in victorialogs as raw byte-array spam otherwise.
|
||||
.with_ansi(false)
|
||||
.init();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue