Moved logging to target functions rather than caller

This commit is contained in:
NanoAkron
2016-10-03 22:11:00 +01:00
parent 442bfd1600
commit 8ed0d72b12
6 changed files with 31 additions and 21 deletions
+3
View File
@@ -278,7 +278,10 @@ namespace cryptonote
//-----------------------------------------------------------------------------------------------------
bool miner::stop()
{
LOG_PRINT_L1("Miner has received stop signal");
if (!is_mining())
LOG_PRINT_L1("Not mining - nothing to stop" );
return true;
send_stop_signal();