#1995 Fixed log initialization.

This commit is contained in:
XMRig 2020-12-22 21:41:39 +07:00
parent 0d9f17670e
commit 85a78ce537
No known key found for this signature in database
GPG key ID: 446A53638BE94409

View file

@ -76,7 +76,12 @@ public:
XMRIG_DISABLE_COPY_MOVE_DEFAULT(BasePrivate)
inline BasePrivate(Process *process) : config(load(process)) {}
inline BasePrivate(Process *process)
{
Log::init();
config = load(process);
}
inline ~BasePrivate()
@ -166,7 +171,7 @@ private:
xmrig::Base::Base(Process *process)
: d_ptr(new BasePrivate(process))
{
Log::init();
}