diff options
author | 2023-05-01 14:21:03 +0100 | |
---|---|---|
committer | 2023-05-06 13:20:46 +0100 | |
commit | ebdeed7b7903fbec6555e94bfa6d741a3e11b2ba (patch) | |
tree | 968ef4d93d4fe2fe8ba94fe84b005737226cc467 | |
parent | update Client constants (diff) |
update Logging
-rw-r--r-- | bot/constants.py | 14 |
1 files changed, 10 insertions, 4 deletions
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: |