aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_core/utils/logging.py
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2023-09-19 16:07:32 +0100
committerGravatar Chris Lovering <[email protected]>2023-09-20 17:34:25 +0100
commit03575223498fa16ecec18ef3965893fa8bf716a7 (patch)
treea16ee22664bb379f5c7fda63211cfc9b26e17e4a /pydis_core/utils/logging.py
parent Add log_format to the logging util to allow for standardised logging (diff)
Set various loggers to suitable default levelsv10.3.0
These levels were pulled from bot's current logging setup
Diffstat (limited to 'pydis_core/utils/logging.py')
-rw-r--r--pydis_core/utils/logging.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/pydis_core/utils/logging.py b/pydis_core/utils/logging.py
index c8eb5b19..256151a8 100644
--- a/pydis_core/utils/logging.py
+++ b/pydis_core/utils/logging.py
@@ -55,3 +55,10 @@ def get_logger(name: str | None = None) -> CustomLogger:
logging.TRACE = TRACE_LEVEL
logging.setLoggerClass(CustomLogger)
logging.addLevelName(TRACE_LEVEL, "TRACE")
+
+get_logger("discord").setLevel(logging.WARNING)
+get_logger("websockets").setLevel(logging.WARNING)
+get_logger("chardet").setLevel(logging.WARNING)
+get_logger("async_rediscache").setLevel(logging.WARNING)
+# Set back to the default of INFO even if asyncio's debug mode is enabled.
+get_logger("asyncio").setLevel(logging.INFO)