瀏覽代碼

Fix log file rotate time.

pull/24/head
Ben Kurtovic 10 年之前
父節點
當前提交
1e3a61ac52
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      app.fcgi

+ 1
- 1
app.fcgi 查看文件

@@ -22,7 +22,7 @@ MakoTemplates(app)

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

bot = Bot(".earwigbot", 100)


Loading…
取消
儲存