mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-12-29 03:40:55 +00:00
Fixed: Don't display logs in console for unit tests
This commit is contained in:
parent
7ffc842ba4
commit
1978cab022
1 changed files with 14 additions and 0 deletions
|
@ -114,6 +114,20 @@ int main(int argc, char *argv[])
|
||||||
// init Nel context
|
// init Nel context
|
||||||
new NLMISC::CApplicationContext;
|
new NLMISC::CApplicationContext;
|
||||||
|
|
||||||
|
// disable nldebug messages in logs in Release
|
||||||
|
#ifdef NL_RELEASE
|
||||||
|
NLMISC::DisableNLDebug = true;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
NLMISC::createDebug(NULL);
|
||||||
|
|
||||||
|
#ifndef NL_DEBUG
|
||||||
|
NLMISC::INelContext::getInstance().getDebugLog()->removeDisplayer("DEFAULT_SD");
|
||||||
|
NLMISC::INelContext::getInstance().getInfoLog()->removeDisplayer("DEFAULT_SD");
|
||||||
|
NLMISC::INelContext::getInstance().getWarningLog()->removeDisplayer("DEFAULT_SD");
|
||||||
|
NLMISC::INelContext::getInstance().getErrorLog()->removeDisplayer("DEFAULT_SD");
|
||||||
|
#endif // NL_DEBUG
|
||||||
|
|
||||||
bool noerrors = false;
|
bool noerrors = false;
|
||||||
|
|
||||||
try
|
try
|
||||||
|
|
Loading…
Reference in a new issue