aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjwansek <eddie.atten.ea29@gmail.com>2023-06-06 13:19:38 +0100
committerjwansek <eddie.atten.ea29@gmail.com>2023-06-06 13:19:38 +0100
commit0d50aa5b59312e4474ae9dcd9b3305a1820be786 (patch)
tree84734cdca335dfb50104b3db67608072e2e4ae52
parent2625a7cf2100cd88d763fd421062a36dcb49d008 (diff)
downloadSmallYTChannelBot-0d50aa5b59312e4474ae9dcd9b3305a1820be786.tar.gz
SmallYTChannelBot-0d50aa5b59312e4474ae9dcd9b3305a1820be786.zip
Added formatter
-rwxr-xr-xsubreddit.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/subreddit.py b/subreddit.py
index e92c1d9..c31f5f3 100755
--- a/subreddit.py
+++ b/subreddit.py
@@ -37,6 +37,7 @@ IMGUR = ImgurClient(**CONFIG["imgurapi"])
handler = logging.FileHandler("/logs/api.log")
handler.setLevel(logging.DEBUG)
+handler.setFormatter(logging.Formatter("[%(asctime)s]\t%(message)s"))
for logger_name in ("praw", "prawcore"):
logger = logging.getLogger(logger_name)
logger.setLevel(logging.DEBUG)