Ver código fonte

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

pull/24/head
Ben Kurtovic 10 anos atrás
pai
commit
b116c7e473
1 arquivos alterados com 3 adições e 3 exclusões
  1. +3
    -3
      app.fcgi

+ 3
- 3
app.fcgi Ver arquivo

@@ -24,9 +24,9 @@ from copyvios.sites import update_sites
app = Flask(__name__)
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())

def catch_errors(func):


Carregando…
Cancelar
Salvar