strip ansi escapes from systemd-managed daemon logs

This commit is contained in:
damocles 2026-08-30 23:23:00 +02:00
commit 5f197a38ee
11 changed files with 44 additions and 0 deletions

View file

@ -42,6 +42,10 @@ async fn main() -> Result<()> {
.with_env_filter(
tracing_subscriber::EnvFilter::try_from_default_env().unwrap_or_else(|_| "info".into()),
)
// 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 listener = socket_listener()?;