Skip to content

Commit

Permalink
Add timestamp to crawler logging
Browse files Browse the repository at this point in the history
  • Loading branch information
chosak committed Oct 30, 2023
1 parent 92fa68a commit a7dbe3a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,16 @@
LOGGING = {
"version": 1,
"disable_existing_loggers": False,
"formatters": {
"default": {
"format": " %(asctime)s.%(msecs)03d %(levelname)s %(message)s",
"datefmt": "%Y-%m-%d %H:%M:%S",
}
},
"handlers": {
"console": {
"class": "logging.StreamHandler",
"formatter": "default",
},
},
"loggers": {
Expand Down

0 comments on commit a7dbe3a

Please sign in to comment.