#1141 Fixed log in background mode.
This commit is contained in:
parent
9cfbce5e09
commit
372183555b
3 changed files with 12 additions and 3 deletions
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue