diff --git a/spa/plugins/support/logger.c b/spa/plugins/support/logger.c index ffd57e963..b4ccb3279 100644 --- a/spa/plugins/support/logger.c +++ b/spa/plugins/support/logger.c @@ -280,6 +280,8 @@ impl_init(const struct spa_handle_factory *factory, } if (this->file == NULL) this->file = stderr; + if (!isatty(fileno(this->file))) + this->colors = false; spa_ringbuffer_init(&this->trace_rb);