From 6cfdc9eb29eaea18c1ce07ae3dd60be24dcbff32 Mon Sep 17 00:00:00 2001 From: Julio Biason Date: Mon, 22 Jul 2013 15:27:59 -0300 Subject: [PATCH] readjusted the log start up just to be sure it will start as debug in the app start up --- manage.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/manage.py b/manage.py index c786ccb..8a8f8bc 100644 --- a/manage.py +++ b/manage.py @@ -1,19 +1,20 @@ #!/usr/bin/env python # -*- encoding: utf-8 -*- -from flask.ext.script import Manager -from flask.ext.script import Server - -from lyrics import app +# before everything else, start the logging system in DEBUG mode for the +# manager. this way we can log everything, including the app start up import logging - -# starts the logging service, always if __name__ == '__main__': logging.basicConfig(level=logging.DEBUG, format='%(levelname)s:%(name)s ' '[%(funcName)s:%(lineno)d]:%(message)s') +# and now back to your normal schedule +from flask.ext.script import Manager +from flask.ext.script import Server + +from lyrics import app manager = Manager(app)