fix missing message in log file

initialize the log file as fast as possible after the start of the miner
This commit is contained in:
psychocrypt
2018-02-17 20:35:14 +01:00
parent 29bac54912
commit 30024ee8a0
+3 -3
View File
@@ -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();