moved logging config

This commit is contained in:
John Lancaster
2023-06-11 09:31:36 -05:00
parent 9c09a6778b
commit 486a046cb3
2 changed files with 2 additions and 2 deletions

View File

@@ -65,8 +65,6 @@ class Kwaylon(Client):
datefmt=dt_fmt, datefmt=dt_fmt,
handlers=[rich_handler] handlers=[rich_handler]
) )
logging.getLogger('discord.http').setLevel(logging.WARNING)
logging.getLogger('discord.gateway').setLevel(logging.WARNING)
intents = Intents.default() intents = Intents.default()
intents.message_content = True intents.message_content = True

View File

@@ -17,6 +17,8 @@ if __name__ == '__main__':
logging.DEBUG logging.DEBUG
) )
) )
logging.getLogger('discord').setLevel(logging.WARNING)
logging.getLogger('urllib3').setLevel(logging.INFO)
try: try:
loop.run_forever() loop.run_forever()
except KeyboardInterrupt: except KeyboardInterrupt: