From e7bf8d0fe6434941ba0b9790c7b307b3146c885d Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Fri, 27 Feb 2015 04:49:12 +0300 Subject: [PATCH] Few small log output fixes: - fix DumpMasternodes log output (wasn't really working) - add log output on CMasternodeMan::Add - slightly edit CMasternodeMan::CheckAndRemove log output --- src/masternodeman.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/masternodeman.cpp b/src/masternodeman.cpp index 720141c38..185e436d5 100644 --- a/src/masternodeman.cpp +++ b/src/masternodeman.cpp @@ -123,8 +123,7 @@ void DumpMasternodes() CMasternodeDB mndb; mndb.Write(mnodeman); - LogPrint("masternode", "Flushed %d masternodes to masternodes.dat %dms\n", - mnodeman.size(), GetTimeMillis() - nStart); + LogPrintf("Flushed %d masternodes to masternodes.dat %dms\n", mnodeman.size(), GetTimeMillis() - nStart); } CMasternodeMan::CMasternodeMan() {} @@ -140,6 +139,7 @@ bool CMasternodeMan::Add(CMasternode &mn) if (pmn == NULL) { + LogPrintf("CMasternodeMan: Adding new masternode %s\n", mn.addr.ToString().c_str()); vMasternodes.push_back(mn); return true; } @@ -165,7 +165,7 @@ void CMasternodeMan::CheckAndRemove() vector::iterator it = vMasternodes.begin(); while(it != vMasternodes.end()){ if((*it).activeState == 4 || (*it).activeState == 3){ - LogPrintf("Removing inactive masternode %s\n", (*it).addr.ToString().c_str()); + LogPrintf("CMasternodeMan: Removing inactive masternode %s\n", (*it).addr.ToString().c_str()); it = vMasternodes.erase(it); } else { ++it;