diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-03-31 20:01:58 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-03-31 20:01:58 +0100 |
commit | a38343bf68b2d88e24bb6a4eeab51e59b2483399 (patch) | |
tree | 5093f066d1dc70dc5509f9d6a531887457403496 /src | |
parent | Merge pull request #1930 (diff) | |
download | monero-a38343bf68b2d88e24bb6a4eeab51e59b2483399.tar.xz |
miner: add a debug log in pause and resume
Diffstat (limited to 'src')
-rw-r--r-- | src/cryptonote_basic/miner.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cryptonote_basic/miner.cpp b/src/cryptonote_basic/miner.cpp index 4c84e7eee..0e71b9019 100644 --- a/src/cryptonote_basic/miner.cpp +++ b/src/cryptonote_basic/miner.cpp @@ -377,6 +377,7 @@ namespace cryptonote void miner::pause() { CRITICAL_REGION_LOCAL(m_miners_count_lock); + MDEBUG("miner::pause: " << m_pausers_count << " -> " << (m_pausers_count + 1)); ++m_pausers_count; if(m_pausers_count == 1 && is_mining()) MDEBUG("MINING PAUSED"); @@ -385,6 +386,7 @@ namespace cryptonote void miner::resume() { CRITICAL_REGION_LOCAL(m_miners_count_lock); + MDEBUG("miner::resume: " << m_pausers_count << " -> " << (m_pausers_count - 1)); --m_pausers_count; if(m_pausers_count < 0) { |