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