Skip to content

Commit

Permalink
Add standard log format displaying thread name
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit74 committed Nov 5, 2024
1 parent fd5c04a commit 0ce636c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/zimscraperlib/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
from zimscraperlib.constants import NAME

DEFAULT_FORMAT = "[%(name)s::%(asctime)s] %(levelname)s:%(message)s"
DEFAULT_FORMAT_WITH_THREADS = (
"[%(name)s::%(threadName)s::%(asctime)s] %(levelname)s:%(message)s"
)
VERBOSE_DEPENDENCIES = ["urllib3", "PIL", "boto3", "botocore", "s3transfer"]


Expand Down

0 comments on commit 0ce636c

Please sign in to comment.