Explorar el Código

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

pull/24/head
Ben Kurtovic hace 9 años
padre
commit
b116c7e473
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. +3
    -3
      app.fcgi

+ 3
- 3
app.fcgi Ver fichero

@@ -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):


Cargando…
Cancelar
Guardar