aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-08-15 20:54:53 +0200
committerRiccardo Spagni <ric@spagni.net>2017-08-15 20:54:53 +0200
commit7b14a96c03093b1096854e88cebcf2715f876773 (patch)
treecefff3cfee86a339a2f53c78a216eb445ed0ac4c /src
parentMerge pull request #2282 (diff)
parentminer: set thread name before logging (diff)
downloadmonero-7b14a96c03093b1096854e88cebcf2715f876773.tar.xz
Merge pull request #2283
d1f204d6 miner: set thread name before logging (moneromooo-monero)
Diffstat (limited to 'src')
-rw-r--r--src/cryptonote_basic/miner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptonote_basic/miner.cpp b/src/cryptonote_basic/miner.cpp
index b14532d44..3c5811d61 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;