Skip to content

Commit

Permalink
Revert "Updates logging"
Browse files Browse the repository at this point in the history
This reverts commit a40b1c4.
  • Loading branch information
AngellusMortis committed Aug 15, 2024
1 parent 719a194 commit e238c6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 21 deletions.
11 changes: 1 addition & 10 deletions config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,22 +324,13 @@
"format": "%(levelname)s %(asctime)s %(name)s %(module)s "
"%(process)d %(thread)d %(message)s", # noqa E501
},
"huey_colored": {
"()": "coloredlogs.ColoredFormatter",
"format": "%(levelname)s %(asctime)s %(name)s %(threadName)s %(message)s",
},
},
"handlers": {
"console": {
"level": "INFO",
"class": "logging.StreamHandler",
"formatter": "colored",
},
"huey": {
"level": "INFO",
"class": "logging.StreamHandler",
"formatter": "huey_colored",
},
"django.server": {
"level": "INFO",
"class": "logging.StreamHandler",
Expand All @@ -350,7 +341,7 @@
"root": {"level": "INFO", "handlers": ["console"]},
"ingest": {"level": "INFO", "handlers": ["console"]},
"azure": {"level": "WARNING"},
"huey": {"handlers": ["huey"], "propagate": False},
"huey": {"handlers": [], "propagate": False},
"django": {"handlers": ["console"], "level": "INFO"},
"django.server": {
"handlers": ["django.server"],
Expand Down
12 changes: 1 addition & 11 deletions config/settings/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,25 +84,16 @@
"formatters": {
"colored": {
"()": "coloredlogs.ColoredFormatter",
"format": "%(levelname)s %(asctime)s %(name)s %(module)s "
"format": "%(levelname)s %(asctime)s %(module)s "
"%(process)d %(thread)d %(message)s", # noqa E501
},
"huey_colored": {
"()": "coloredlogs.ColoredFormatter",
"format": "%(levelname)s %(asctime)s %(name)s %(threadName)s %(message)s",
},
},
"handlers": {
"console": {
"level": "INFO",
"class": "logging.StreamHandler",
"formatter": "colored",
},
"huey": {
"level": "INFO",
"class": "logging.StreamHandler",
"formatter": "huey_colored",
},
"django.server": {
"level": "INFO",
"class": "logging.StreamHandler",
Expand All @@ -113,7 +104,6 @@
"root": {"level": "INFO", "handlers": ["console"]},
"ingest": {"level": "INFO", "handlers": ["console"]},
"azure": {"level": "WARNING"},
"huey": {"handlers": ["huey"], "propagate": False},
"django": {"handlers": ["console"], "level": "INFO"},
"django.request": {
"handlers": ["console"],
Expand Down

0 comments on commit e238c6c

Please sign in to comment.