#1141 Fixed log in background mode.

This commit is contained in:
XMRig
2019-08-30 14:46:38 +07:00
parent 61c6edddc7
commit e08d07aab7
3 changed files with 12 additions and 3 deletions

View File

@@ -184,7 +184,10 @@ int xmrig::Base::init()
Platform::setProcessPriority(config()->cpu().priority());
# endif
if (!config()->isBackground()) {
if (config()->isBackground()) {
Log::background = true;
}
else {
Log::add(new ConsoleLog());
}