Browse Source

readjusted the log start up just to be sure it will start as debug in the app start up

master
Julio Biason 11 years ago
parent
commit
6cfdc9eb29
  1. 13
      manage.py

13
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)

Loading…
Cancel
Save