Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions upgrade/scripts/logging_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
from pathlib import Path
from typing import Optional, Tuple

DEFAULT_LOG_FORMAT = "%(asctime)s %(levelname)s %(name)s %(message)s"
DEFAULT_DATE_FORMAT = "%Y-%m-%dT%H:%M:%S%z"
DEFAULT_LOG_FORMAT = "%(asctime)s [%(levelname)s] [%(name)s:%(lineno)s] %(message)s"
UPGRADE_HANDLER_ATTR = "_upgrade_handler"


Expand Down Expand Up @@ -77,7 +76,7 @@ def configure_logging(
not _is_upgrade_handler(handler) for handler in root.handlers
)

formatter = logging.Formatter(DEFAULT_LOG_FORMAT, datefmt=DEFAULT_DATE_FORMAT)
formatter = logging.Formatter(DEFAULT_LOG_FORMAT)

if test:
stream_handler = logging.StreamHandler(sys.stderr)
Expand Down
Loading