Browse Source

Remove funcName from log messages.

tags/v1.0^2
Ben Kurtovic 10 years ago
parent
commit
fb35774790
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      bitshift/crawler/crawl.py

+ 2
- 2
bitshift/crawler/crawl.py View File

@@ -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…
Cancel
Save