mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-16 19:22:46 -05:00
#1141 Fixed log in background mode.
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user