From ebdeed7b7903fbec6555e94bfa6d741a3e11b2ba Mon Sep 17 00:00:00 2001 From: shtlrs Date: Mon, 1 May 2023 14:21:03 +0100 Subject: update Logging --- bot/constants.py | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'bot/constants.py') diff --git a/bot/constants.py b/bot/constants.py index ee7ab6d8..91ef7d10 100644 --- a/bot/constants.py +++ b/bot/constants.py @@ -118,10 +118,16 @@ class _Bot(EnvConfig): Bot = _Bot() -class Logging(NamedTuple): - debug = Client.debug - file_logs = environ.get("FILE_LOGS", "false").lower() == "true" - trace_loggers = environ.get("BOT_TRACE_LOGGERS") + +class _Logging(EnvConfig): + EnvConfig.Config.env_prefix = "logging_" + + debug = Bot.debug + file_logs = False + trace_loggers = "" + + +Logging = _Logging() class Colours: -- cgit v1.2.3