diff options
author | 2021-11-20 23:10:57 +0300 | |
---|---|---|
committer | 2021-11-20 23:10:57 +0300 | |
commit | b794b02c4aa81218500151fde53e95d8c10c9817 (patch) | |
tree | e74ae8455ebf1c469adf059414357a21d8aec236 /bot/constants.py | |
parent | Merge pull request #949 from D0rs4n/pr/aochanges (diff) |
Disable File Logging By Default
Place logging to file behind an environment variable.
Signed-off-by: Hassan Abouelela <[email protected]>
Diffstat (limited to 'bot/constants.py')
-rw-r--r-- | bot/constants.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bot/constants.py b/bot/constants.py index 2b41b8a4..33bc8b61 100644 --- a/bot/constants.py +++ b/bot/constants.py @@ -135,6 +135,7 @@ class Client(NamedTuple): prefix = environ.get("PREFIX", ".") token = environ.get("BOT_TOKEN") debug = environ.get("BOT_DEBUG", "true").lower() == "true" + file_logs = environ.get("FILE_LOGS", "false").lower() == "true" github_bot_repo = "https://github.com/python-discord/sir-lancebot" # Override seasonal locks: 1 (January) to 12 (December) month_override = int(environ["MONTH_OVERRIDE"]) if "MONTH_OVERRIDE" in environ else None |