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
|
|
@ -96,6 +96,10 @@ async fn main() -> Result<()> {
|
|||
tracing_subscriber::EnvFilter::try_from_default_env()
|
||||
.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();
|
||||
|
||||
let cli = Cli::parse();
|
||||
|
|
|
|||
Loading…
Reference in a new issue