From 85a78ce5373cd731390ab3c8abf28af9ea044476 Mon Sep 17 00:00:00 2001 From: XMRig Date: Tue, 22 Dec 2020 21:41:39 +0700 Subject: [PATCH] #1995 Fixed log initialization. --- src/base/kernel/Base.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/base/kernel/Base.cpp b/src/base/kernel/Base.cpp index 24736193..698dc10c 100644 --- a/src/base/kernel/Base.cpp +++ b/src/base/kernel/Base.cpp @@ -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(); + }