diff options
author | André Glüpker <git@wgmd.de> | 2018-06-05 23:40:38 +0200 |
---|---|---|
committer | André Glüpker <git@wgmd.de> | 2018-06-05 23:40:38 +0200 |
commit | 0767cbf1eb34a248252fbed0878d47ba559adfb6 (patch) | |
tree | 95dbf2c62b509b462e73dbc369475c5dcfa3e33c | |
parent | e5cdc8faead268f426cbeeddec460ffec252b4e0 (diff) | |
download | steam-0767cbf1eb34a248252fbed0878d47ba559adfb6.tar.gz steam-0767cbf1eb34a248252fbed0878d47ba559adfb6.tar.bz2 steam-0767cbf1eb34a248252fbed0878d47ba559adfb6.zip |
Add logging to file
-rwxr-xr-x | main.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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) |