Skip to content

Commit

Permalink
Feature: make logging less verbose (#313)
Browse files Browse the repository at this point in the history
## 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)

- #
  • Loading branch information
Gustavo-SF authored Oct 13, 2024
1 parent 582f5bb commit 042ab46
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions portal/config/settings/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
},
}
Expand Down

0 comments on commit 042ab46

Please sign in to comment.