Commits

Lars Yencken committed e01796a

Log debug output to a file.

Comments (0)

Files changed (1)

 import helpers
 
 if settings.DEBUG:
-    logging.getLogger().setLevel(logging.DEBUG)
+    _l = logging.getLogger()
+    _l.setLevel(logging.DEBUG)
+    _l.addHandler(logging.FileHandler('game_logs/debug.log'))
     for im in glob.glob('game_logs/*.png'):
         os.remove(im)