From 90726009efd936f2c319400572862c363224f633 Mon Sep 17 00:00:00 2001 From: Ivo Branco Date: Mon, 11 Mar 2024 16:28:03 +0000 Subject: [PATCH] fix: no logging on django command fixes #274 --- nau_financial_manager/settings.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/nau_financial_manager/settings.py b/nau_financial_manager/settings.py index 202b5aa..4e4e2fd 100644 --- a/nau_financial_manager/settings.py +++ b/nau_financial_manager/settings.py @@ -223,7 +223,19 @@ def get_env_setting(env_variable, default=None): _LOGGING = CONFIG.get( "LOGGING", - None, + { + "version": 1, + "disable_existing_loggers": False, + "handlers": { + "console": { + "class": "logging.StreamHandler", + }, + }, + "root": { + "handlers": ["console"], + "level": "INFO", + }, + }, ) if _LOGGING: LOGGING = _LOGGING