diff options
author | 2021-11-28 09:49:36 +0100 | |
---|---|---|
committer | 2021-11-28 09:49:36 +0100 | |
commit | 2201f81816db9851a0906aeae525333925b77f9b (patch) | |
tree | 76ae637d7596cec22074f848c71269528d82cea1 /bot/log.py | |
parent | Merge pull request #955 from DMFriends/christmas_avatar (diff) | |
parent | Merge branch 'main' into file_logging (diff) |
Merge pull request #951 from python-discord/file_logging
Disable File Logging By Default
Diffstat (limited to 'bot/log.py')
-rw-r--r-- | bot/log.py | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -20,10 +20,7 @@ def setup() -> None: log_format = logging.Formatter(format_string) root_logger = logging.getLogger() - # Copied from constants file, which we can't import yet since loggers aren't instantiated - debug = os.environ.get("BOT_DEBUG", "true").lower() == "true" - - if debug: + if Client.file_logs: # Set up file logging log_file = Path("logs/sir-lancebot.log") log_file.parent.mkdir(exist_ok=True) |