aboutsummaryrefslogtreecommitdiffstats
path: root/bot/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'bot/__init__.py')
-rw-r--r--bot/__init__.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/bot/__init__.py b/bot/__init__.py
index 6b3a2a6f..dc97df3d 100644
--- a/bot/__init__.py
+++ b/bot/__init__.py
@@ -4,6 +4,8 @@ from pathlib import Path
import arrow
+from bot.constants import Client
+
# start datetime
start_time = arrow.utcnow()
@@ -19,7 +21,8 @@ file_handler.setLevel(logging.DEBUG)
# console handler prints to terminal
console_handler = logging.StreamHandler()
-console_handler.setLevel(logging.INFO)
+level = logging.DEBUG if Client.debug else logging.INFO
+console_handler.setLevel(level)
# remove old loggers if any
root = logging.getLogger()