summaryrefslogtreecommitdiffstats
path: root/xmrstak/cli
diff options
context:
space:
mode:
authorpsychocrypt <psychocryptHPC@gmail.com>2018-02-17 20:35:14 +0100
committerpsychocrypt <psychocryptHPC@gmail.com>2018-02-17 20:35:14 +0100
commit30024ee8a0945c833adf2a2c57e0a78aa3d8d1d0 (patch)
tree5b38c0813daced1fe2955dc7f4cda52781516c3b /xmrstak/cli
parent29bac54912faa1090f34f3fb5e23cb018f2c36e1 (diff)
downloadxmr-stak-30024ee8a0945c833adf2a2c57e0a78aa3d8d1d0.zip
xmr-stak-30024ee8a0945c833adf2a2c57e0a78aa3d8d1d0.tar.gz
fix missing message in log file
initialize the log file as fast as possible after the start of the miner
Diffstat (limited to 'xmrstak/cli')
-rw-r--r--xmrstak/cli/cli-miner.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmrstak/cli/cli-miner.cpp b/xmrstak/cli/cli-miner.cpp
index 29c56b2..9053844 100644
--- a/xmrstak/cli/cli-miner.cpp
+++ b/xmrstak/cli/cli-miner.cpp
@@ -627,6 +627,9 @@ int main(int argc, char *argv[])
}
#endif
+ if(strlen(jconf::inst()->GetOutputFile()) != 0)
+ printer::inst()->open_logfile(jconf::inst()->GetOutputFile());
+
if (!BackendConnector::self_test())
{
win_exit();
@@ -672,9 +675,6 @@ int main(int argc, char *argv[])
else
printer::inst()->print_msg(L0,"Start mining: AEON");
- if(strlen(jconf::inst()->GetOutputFile()) != 0)
- printer::inst()->open_logfile(jconf::inst()->GetOutputFile());
-
executor::inst()->ex_start(jconf::inst()->DaemonMode());
uint64_t lastTime = get_timestamp_ms();
OpenPOWER on IntegriCloud