diff options
author | Alex Zolotarev <alex@maps.me> | 2016-01-19 18:23:03 +0300 |
---|---|---|
committer | Sergey Yershov <yershov@corp.mail.ru> | 2016-03-23 16:14:16 +0300 |
commit | 777be28e30235e1f3ae971a3f4668eb5d9eb0cc5 (patch) | |
tree | 0a3296778aa02002e2b272c285933bd01cf15082 /qt/main.cpp | |
parent | d2622868bf6baca0374662fb70f68809c8d86223 (diff) |
ScopedLogLevelChanger integration.
Diffstat (limited to 'qt/main.cpp')
-rw-r--r-- | qt/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qt/main.cpp b/qt/main.cpp index a17eacf594..144420eee2 100644 --- a/qt/main.cpp +++ b/qt/main.cpp @@ -41,12 +41,12 @@ namespace class InitializeFinalize : public FinalizeBase { FILE * m_errFile; + my::ScopedLogLevelChanger const m_debugLog; public: - InitializeFinalize() + InitializeFinalize() : m_debugLog(LDEBUG) { // App runs without error console under win32. m_errFile = ::freopen(".\\mapsme.log", "w", stderr); - my::g_LogLevel = my::LDEBUG; //_CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_DELAY_FREE_MEM_DF); //_CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF); |