#1141 Fixed log in background mode.

This commit is contained in:
XMRig 2019-08-30 14:46:38 +07:00
parent 9cfbce5e09
commit 372183555b
3 changed files with 12 additions and 3 deletions

View file

@ -91,6 +91,10 @@ public:
std::lock_guard<std::mutex> lock(m_mutex);
if (Log::background && m_backends.empty()) {
return;
}
timestamp(level, size, offset);
color(level, size);
@ -190,8 +194,9 @@ private:
};
bool Log::colors = true;
LogPrivate *Log::d = new LogPrivate();
bool Log::background = false;
bool Log::colors = true;
LogPrivate *Log::d = new LogPrivate();
} /* namespace xmrig */