mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-12-12 04:04:48 +00:00
Fixed: Check VerboseLog config variable instead of "pPM->isVerboseLog()"
This commit is contained in:
parent
c385292a20
commit
9c9f77213c
1 changed files with 2 additions and 4 deletions
|
@ -899,7 +899,7 @@ bool login()
|
||||||
Actions.enable(true);
|
Actions.enable(true);
|
||||||
EditActions.enable(true);
|
EditActions.enable(true);
|
||||||
|
|
||||||
if(ClientCfg.ConfigFile.exists("pPM->isVerboseLog()"))
|
if(ClientCfg.ConfigFile.exists("VerboseLog"))
|
||||||
pPM->setVerboseLog(ClientCfg.ConfigFile.getVar("VerboseLog").asInt() == 1);
|
pPM->setVerboseLog(ClientCfg.ConfigFile.getVar("VerboseLog").asInt() == 1);
|
||||||
if(pPM->isVerboseLog()) nlinfo("Using verbose log mode");
|
if(pPM->isVerboseLog()) nlinfo("Using verbose log mode");
|
||||||
|
|
||||||
|
@ -1864,9 +1864,7 @@ class CAHOpenURL : public IActionHandler
|
||||||
// Process any inserts in lpMsgBuf.
|
// Process any inserts in lpMsgBuf.
|
||||||
// ...
|
// ...
|
||||||
// Display the string.
|
// Display the string.
|
||||||
nlwarning("RegQueryValue for '%s' : %s", KeyName, lpMsgBuf);
|
nlwarning("RegQueryValue for '%s' : %s", KeyName, NLMISC::formatErrorMessage(0).c_str());
|
||||||
// Free the buffer.
|
|
||||||
LocalFree( lpMsgBuf );
|
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
// TODO: for Linux and Mac OS
|
// TODO: for Linux and Mac OS
|
||||||
|
|
Loading…
Reference in a new issue