Set boost tracing level on DLL initialization to errors only.

This commit is contained in:
bubnikv 2017-03-03 14:38:25 +01:00
parent 4de33effdc
commit a219ae3d27

View file

@ -4,7 +4,7 @@
namespace Slic3r {
static boost::log::trivial::severity_level logSeverity = boost::log::trivial::fatal;
static boost::log::trivial::severity_level logSeverity = boost::log::trivial::error;
void set_logging_level(unsigned int level)
{
@ -29,6 +29,11 @@ void set_logging_level(unsigned int level)
);
}
// Force set_logging_level(<=error) after loading of the DLL.
static struct SetLoggingLevelOnInit {
SetLoggingLevelOnInit() { set_logging_level(1); }
} g_SetLoggingLevelOnInit;
void trace(unsigned int level, const char *message)
{
boost::log::trivial::severity_level severity = boost::log::trivial::trace;