Browse Source

JSON-187: Initialise logger also for non-debug builds to avoid unwanted logging and locked log filed.

master Release_2.1.7
Jörg Knobloch 1 month ago
parent
commit
fec1e21119
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      pEpCOMServerAdapter.cpp

+ 4
- 0
pEpCOMServerAdapter.cpp View File

@ -82,6 +82,10 @@ extern "C" int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE /*hPrevInstance*/
}
Logger::start("JsonAdapter", logfile);
#else
// Start the logger even for non-debug builds, see JSON-187.
Logger::setDefaultTarget(Logger::Target::None);
Logger::start("JsonAdapter", "");
#endif
_AtlModule.hModule(hInstance);


Loading…
Cancel
Save