From 2b6b3a226306c2835e14fca7d839b2f62abea648 Mon Sep 17 00:00:00 2001 From: Thomas L Date: Thu, 29 Mar 2018 00:24:56 +0200 Subject: [PATCH] log to stderr --- backend.py | 3 +-- frontend.py | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/backend.py b/backend.py index 98d5fd3..601e19a 100755 --- a/backend.py +++ b/backend.py @@ -9,9 +9,8 @@ import time if __name__ == '__main__': - logpath = config['logging']['logpath'] logger = logging.getLogger() - fh = logging.FileHandler(logpath) + fh = logging.StreamHandler() fh.setLevel(logging.DEBUG) logger.addHandler(fh) diff --git a/frontend.py b/frontend.py index 1c35961..ae706a3 100755 --- a/frontend.py +++ b/frontend.py @@ -151,9 +151,8 @@ def login_mastodon(user): return dict(error='Login to Mastodon failed.') -logpath = config['logging']['logpath'] logger = logging.getLogger() -fh = logging.FileHandler(logpath) +fh = logging.StreamHandler() fh.setLevel(logging.DEBUG) logger.addHandler(fh)