mirror of
https://github.com/monero-project/monero.git
synced 2025-05-17 14:30:24 -04:00
Moved logging to target functions rather than caller
This commit is contained in:
parent
442bfd1600
commit
8ed0d72b12
6 changed files with 31 additions and 21 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue