Skip to content

Commit

Permalink
fix: remove custom logging conf
Browse files Browse the repository at this point in the history
relates to #274
  • Loading branch information
igobranco committed Mar 11, 2024
1 parent a80e639 commit c94db4d
Showing 1 changed file with 4 additions and 35 deletions.
39 changes: 4 additions & 35 deletions nau_financial_manager/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"""
import codecs
import copy
import logging.config
import os
from pathlib import Path

Expand Down Expand Up @@ -222,42 +221,12 @@ def get_env_setting(env_variable, default=None):
]


LOGGING = CONFIG.get(
_LOGGING = CONFIG.get(
"LOGGING",
{
"version": 1,
"disable_existing_loggers": False,
"handlers": {
"error": {
"level": "ERROR",
"class": "logging.StreamHandler",
},
"warning": {
"level": "WARNING",
"class": "logging.StreamHandler",
},
"info": {
"level": "INFO",
"class": "logging.StreamHandler",
},
},
"loggers": {
"django": {
"handlers": ["error", "warning", "info"],
"level": 1,
"propagate": True,
},
"nau_financial_manager": {
"handlers": ["error", "warning", "info"],
"level": 1,
"propagate": True,
},
},
},
None,
)

LOGGING_CONFIG = None
logging.config.dictConfig(LOGGING)
if _LOGGING:
LOGGING = _LOGGING

LANGUAGE_CODE = "en-us"

Expand Down

0 comments on commit c94db4d

Please sign in to comment.