Skip to content

Commit

Permalink
Change datetime format of log messages
Browse files Browse the repository at this point in the history
Include microseconds in datetime stamp to facilitate debugging
  • Loading branch information
hackermd committed Nov 13, 2022
1 parent d7b1552 commit 92031cd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/dicomweb_client/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ def configure_logging(verbosity: int) -> logging.Logger:
)
else:
fmt = '%(asctime)s | %(levelname)-8s | %(name)-40s | %(message)s'
datefmt = '%Y-%m-%d %H:%M:%S'
formatter = logging.Formatter(fmt=fmt, datefmt=datefmt)
formatter = logging.Formatter(fmt=fmt)

stderr_handler = logging.StreamHandler(stream=sys.stderr)
stderr_handler.name = 'stderr'
Expand Down

0 comments on commit 92031cd

Please sign in to comment.