mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-14 19:12:38 -07:00
Set boost tracing level on DLL initialization to errors only.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user