summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Glüpker <git@wgmd.de>2018-06-05 23:40:38 +0200
committerAndré Glüpker <git@wgmd.de>2018-06-05 23:40:38 +0200
commit0767cbf1eb34a248252fbed0878d47ba559adfb6 (patch)
tree95dbf2c62b509b462e73dbc369475c5dcfa3e33c
parente5cdc8faead268f426cbeeddec460ffec252b4e0 (diff)
downloadsteam-0767cbf1eb34a248252fbed0878d47ba559adfb6.tar.gz
steam-0767cbf1eb34a248252fbed0878d47ba559adfb6.tar.bz2
steam-0767cbf1eb34a248252fbed0878d47ba559adfb6.zip
Add logging to file
-rwxr-xr-xmain.py3
1 files changed, 3 insertions, 0 deletions
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)