Browse Source

Try to fix log dump to ~/error.log location.

pull/24/head
Ben Kurtovic 10 years ago
parent
commit
b116c7e473
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      app.fcgi

+ 3
- 3
app.fcgi View File

@@ -24,9 +24,9 @@ from copyvios.sites import update_sites
app = Flask(__name__) app = Flask(__name__)
MakoTemplates(app) MakoTemplates(app)


app.logger.setLevel(DEBUG)
app.logger.addHandler(TimedRotatingFileHandler(
"logs/app.log", when="midnight", backupCount=7))
hand = TimedRotatingFileHandler("logs/app.log", when="midnight", backupCount=7)
hand.setLevel(DEBUG)
app.logger.addHandler(hand)
app.logger.info(u"Flask server started " + asctime()) app.logger.info(u"Flask server started " + asctime())


def catch_errors(func): def catch_errors(func):


Loading…
Cancel
Save