Skip to content

Commit

Permalink
miner: set thread name before logging
Browse files Browse the repository at this point in the history
  • Loading branch information
moneromooo-monero committed Aug 12, 2017
1 parent 181a008 commit d1f204d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cryptonote_basic/miner.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit d1f204d

Please sign in to comment.