From 0767cbf1eb34a248252fbed0878d47ba559adfb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Gl=C3=BCpker?= Date: Tue, 5 Jun 2018 23:40:38 +0200 Subject: Add logging to file --- main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.py b/main.py index 187ceec..1583184 100755 --- a/main.py +++ b/main.py @@ -12,6 +12,7 @@ import re import sys import time, datetime # import traceback +import logging from SteamAPI import SteamAPI from QueryServer import QueryServer @@ -208,6 +209,8 @@ def server(): if __name__ == '__main__': # print(steam.getFriends("76561197963063991")) # print(steam.getFriends("76561197963882989")) + logging.basicConfig(filename='./main.log', level=logging.INFO) + app.config['TEMPLATES_AUTO_RELOAD'] = True app.run(threaded=True) -- cgit v1.2.3