瀏覽代碼

Remove funcName from log messages.

tags/v1.0^2
Ben Kurtovic 10 年之前
父節點
當前提交
fb35774790
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      bitshift/crawler/crawl.py

+ 2
- 2
bitshift/crawler/crawl.py 查看文件

@@ -78,8 +78,8 @@ def _configure_logging():
logging.getLogger("urllib3").setLevel(logging.WARNING)

formatter = logging.Formatter(
fmt=("%(asctime)s %(levelname)s %(name)s:%(funcName)s"
" %(message)s"), datefmt="%y-%m-%d %H:%M:%S")
fmt=("%(asctime)s %(levelname)s %(name)s %(message)s"),
datefmt="%y-%m-%d %H:%M:%S")

file_handler = logging.handlers.TimedRotatingFileHandler(
"%s/%s" % (log_dir, "app.log"), when="H", interval=1,


Loading…
取消
儲存