Skip to content
Snippets Groups Projects
Commit 1d9cdd1c authored by Andreas Traczyk's avatar Andreas Traczyk
Browse files

remove reference to getenv

Change-Id: I828c18603aedb670ad459a2b8910c3d1320f648b
parent 6e323fa5
Branches
No related tags found
No related merge requests found
......@@ -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
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment