You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Notice the time of each line. Some lines have the same time as other lines, which doesn't make sense since all commands here were from one person, unless individual events are being logged multiple times.
The patterns in the log files suggest that when the bot reconnects, the logger is sometimes recreated but doesn't actually replace the existing logger even though the variable is overwritten.
It appears the discord.py documentation has changed slightly since I last read about on_connect. It now says that the warnings from on_ready also apply; that is, the on_connect function may be called multiple times during a single run of the bot.
The text was updated successfully, but these errors were encountered:
Sometimes, messages are logged multiple times.
Example:
Notice the time of each line. Some lines have the same time as other lines, which doesn't make sense since all commands here were from one person, unless individual events are being logged multiple times.
The patterns in the log files suggest that when the bot reconnects, the logger is sometimes recreated but doesn't actually replace the existing logger even though the variable is overwritten.
It appears the discord.py documentation has changed slightly since I last read about
on_connect
. It now says that the warnings fromon_ready
also apply; that is, theon_connect
function may be called multiple times during a single run of the bot.The text was updated successfully, but these errors were encountered: