moved logging config
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user