fixes #0004000: Ability to suppress console output when running under python
This commit is contained in:
@@ -1536,8 +1536,10 @@ void Application::initConfig(int argc, char ** argv)
|
||||
|
||||
// Init console ===========================================================
|
||||
Base::PyGILStateLocker lock;
|
||||
_pConsoleObserverStd = new ConsoleObserverStd();
|
||||
Console().AttachObserver(_pConsoleObserverStd);
|
||||
if (mConfig["LoggingConsole"] == "1") {
|
||||
_pConsoleObserverStd = new ConsoleObserverStd();
|
||||
Console().AttachObserver(_pConsoleObserverStd);
|
||||
}
|
||||
if (mConfig["Verbose"] == "Strict")
|
||||
Console().UnsetConsoleMode(ConsoleSingleton::Verbose);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user