aboutsummaryrefslogtreecommitdiffstats
path: root/bot/log.py
diff options
context:
space:
mode:
authorGravatar ChrisJL <[email protected]>2022-01-01 23:44:42 +0000
committerGravatar GitHub <[email protected]>2022-01-01 23:44:42 +0000
commit21cca969fab2582b51190468b8810c0157c8d7a7 (patch)
treeee77a61d57b4d46f0e3ebdfadab760896986db2d /bot/log.py
parentAdd Better Support For Whitelisting DM Commands (diff)
parentMerge pull request #997 from Sn4u/fix-995 (diff)
Merge branch 'main' into dm-check
Diffstat (limited to 'bot/log.py')
-rw-r--r--bot/log.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/bot/log.py b/bot/log.py
index 97561be4..29e696e0 100644
--- a/bot/log.py
+++ b/bot/log.py
@@ -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)