瀏覽代碼

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

pull/24/head
Ben Kurtovic 10 年之前
父節點
當前提交
b116c7e473
共有 1 個檔案被更改,包括 3 行新增3 行删除
  1. +3
    -3
      app.fcgi

+ 3
- 3
app.fcgi 查看文件

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


Loading…
取消
儲存