Disable Jack logging by default

Jack sometimes outputs a log of messages and AIXLOG is not thread-safe
at the moment, so enabling Jack logging leads to quite a few missing
log messages or messages with invalid log-level or tag.
This commit is contained in:
Marcus Weseloh 2024-06-02 12:53:11 +02:00 committed by Johannes Pohl
parent 3527c0a2eb
commit 2f6648cc1b

View file

@ -156,8 +156,13 @@ JackStream::JackStream(PcmStream::Listener* pcmListener, boost::asio::io_context
throw SnapException("JackStreams only support 16, 24 and 32 bit sample formats");
}
#if 0
// Disabled by default as aixlog <= 1.4.0 is not thread-safe at the moment
// and Jack produces quite a few log message.
// TODO: enable if and when aixlog becomes thread-safe.
jack_set_error_function([](const char* msg) { LOG(ERROR, LOG_TAG) << "Jack Error: " << msg << "\n"; });
jack_set_info_function([](const char* msg) { LOG(DEBUG, LOG_TAG) << msg << "\n"; });
#endif
}