]> git.sesse.net Git - casparcg/blobdiff - common/log.cpp
Added support for categorizing log into normal, call and communication.
[casparcg] / common / log.cpp
index 8ae7c35bba9221604aa13be32c8e2c9abfb89a15..d9e5ac89845069ff9458b910849847ec792812fd 100644 (file)
@@ -151,6 +151,8 @@ void init()
        stream_backend->auto_flush(true);
 
        auto stream_sink = boost::make_shared<stream_sink_type>(stream_backend);
+       // Never log calltrace to console. The terminal is too slow, so the log queue will build up faster than consumed.
+       stream_sink->set_filter(boost::log::expressions::attr<log_category>("Channel") != log_category::call);
 
        bool print_all_characters = false;
        stream_sink->set_formatter(boost::bind(&my_formatter<boost::log::wformatting_ostream>, print_all_characters, _1, _2));