Set boost tracing level on DLL initialization to errors only.
This commit is contained in:
parent
4de33effdc
commit
a219ae3d27
1 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue