diff options
author | 2021-12-02 00:11:16 +0000 | |
---|---|---|
committer | 2021-12-02 00:11:16 +0000 | |
commit | ebd90f95fca95035ac8c15c3a8e10e08ddad2413 (patch) | |
tree | 3b9ea9005a2e7a08f4d85857512dc56f4f21f957 /bot/log.py | |
parent | Remove unnecessary edits during pagination (diff) | |
parent | Merge pull request #959 from onerandomusername/fix-hanukkah-command (diff) |
Merge branch 'main' into patch-3
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) |