mirror of
https://github.com/xmrig/xmrig.git
synced 2024-10-30 21:17:52 +00:00
#1995 Fixed log initialization.
This commit is contained in:
parent
0d9f17670e
commit
85a78ce537
1 changed files with 7 additions and 2 deletions
|
@ -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();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue