From c94db4dc2196b6811a761c162c81bdd50a9d141e Mon Sep 17 00:00:00 2001 From: Ivo Branco Date: Mon, 11 Mar 2024 12:43:36 +0000 Subject: [PATCH] fix: remove custom logging conf relates to #274 --- nau_financial_manager/settings.py | 39 ++++--------------------------- 1 file changed, 4 insertions(+), 35 deletions(-) diff --git a/nau_financial_manager/settings.py b/nau_financial_manager/settings.py index c8fb3c4..202b5aa 100644 --- a/nau_financial_manager/settings.py +++ b/nau_financial_manager/settings.py @@ -11,7 +11,6 @@ """ import codecs import copy -import logging.config import os from pathlib import Path @@ -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"