Moved logging to target functions rather than caller
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user