(bots) display received/sent message logs only if we are authenticated

This commit is contained in:
Benjamin Sergeant 2020-06-18 10:49:36 -07:00
parent 565a08b229
commit 56db55caca

View File

@ -56,6 +56,7 @@ namespace ix
&receivedCountPerSecs, &receivedCountPerSecs,
&receivedCountPerMinutes, &receivedCountPerMinutes,
&minuteCounter, &minuteCounter,
&conn,
&stop] { &stop] {
setThreadName("Bot progress"); setThreadName("Bot progress");
while (!stop) while (!stop)
@ -74,7 +75,11 @@ namespace ix
<< sentCountPerSecs << sentCountPerSecs
<< " " << " "
<< sentCountTotal; << sentCountTotal;
CoreLogger::info(ss.str());
if (conn.isAuthenticated())
{
CoreLogger::info(ss.str());
}
receivedCountPerSecs = receivedCount - receivedCountTotal; receivedCountPerSecs = receivedCount - receivedCountTotal;
sentCountPerSecs = sentCount - sentCountTotal; sentCountPerSecs = sentCount - sentCountTotal;