diff options
| author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-08-12 09:07:40 +0100 |
|---|---|---|
| committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-08-12 09:07:40 +0100 |
| commit | d1f204d64049f59db11844985886e523f9e21a3d (patch) | |
| tree | 17cb2a799b8142102954c7a0f6a0c109ffd8350b /src | |
| parent | 181a008aa35f130e046ec906cbb1b2436a381a62 (diff) | |
| download | monzero-core-d1f204d64049f59db11844985886e523f9e21a3d.tar.gz monzero-core-d1f204d64049f59db11844985886e523f9e21a3d.tar.xz monzero-core-d1f204d64049f59db11844985886e523f9e21a3d.zip | |
miner: set thread name before logging
Diffstat (limited to 'src')
| -rw-r--r-- | src/cryptonote_basic/miner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptonote_basic/miner.cpp b/src/cryptonote_basic/miner.cpp index 9248e2e1d..ef4b1e6be 100644 --- a/src/cryptonote_basic/miner.cpp +++ b/src/cryptonote_basic/miner.cpp @@ -412,8 +412,8 @@ namespace cryptonote bool miner::worker_thread() { uint32_t th_local_index = boost::interprocess::ipcdetail::atomic_inc32(&m_thread_index); - MGINFO("Miner thread was started ["<< th_local_index << "]"); MLOG_SET_THREAD_NAME(std::string("[miner ") + std::to_string(th_local_index) + "]"); + MGINFO("Miner thread was started ["<< th_local_index << "]"); uint32_t nonce = m_starter_nonce + th_local_index; uint64_t height = 0; difficulty_type local_diff = 0; |
