From 042ab465d5cd0bfb71d2f2df8ccd5f46305d60c9 Mon Sep 17 00:00:00 2001 From: Gustavo Fonseca <55834874+Gustavo-SF@users.noreply.github.com> Date: Sun, 13 Oct 2024 21:06:39 +0100 Subject: [PATCH] Feature: make logging less verbose (#313) ## Changes - `botocore` has been spamming the logs, and makes it hard to see old logs. I am changing this logger to `WARNING`. Should clean up the logs by a lot! I am also adding `s3transfer` and `urllib3` since we have a few from them as well. No need to have `DEBUG` logs coming from there ## Issue(s) - # --- portal/config/settings/settings.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/portal/config/settings/settings.py b/portal/config/settings/settings.py index fc5a882..09511de 100644 --- a/portal/config/settings/settings.py +++ b/portal/config/settings/settings.py @@ -597,14 +597,21 @@ class MediaRootS3Boto3Storage(S3Boto3Storage): }, }, "loggers": { - "": { + "root": { "handlers": ["console"], "level": "DEBUG", }, "parso": { - "handlers": ["console"], "level": "WARNING", - "propagate": False, + }, + "botocore": { + "level": "WARNING", + }, + "urllib3": { + "level": "WARNING", + }, + "s3transfer": { + "level": "WARNING", }, }, }