diff --git a/src/manager.cpp b/src/manager.cpp index eca8d723f7873a2fef6060bfbf9554c492607d5d..daac4659fb6434440a6e0062fb83a922d765299a 100644 --- a/src/manager.cpp +++ b/src/manager.cpp @@ -139,6 +139,7 @@ static constexpr const char* DHTLOGLEVEL = "DHTLOGLEVEL"; static void setDhtLogLevel() { +#ifndef WIN32_NATIVE char* envvar = getenv(DHTLOGLEVEL); int level = 0; @@ -151,6 +152,9 @@ setDhtLogLevel() RING_DBG("DHTLOGLEVEL=%u", level); } Manager::instance().dhtLogLevel = level; +#else + Manager::instance().dhtLogLevel = 0; +#endif } /**