Skip to content

Commit

Permalink
Merge pull request #2099 from heisencoder/fix/debug-log-format
Browse files Browse the repository at this point in the history
Update DEBUG_LOG_FORMAT to correctly zero-pad the microsecond portion
  • Loading branch information
beckjake authored Feb 10, 2020
2 parents dcce90b + 551bf42 commit 2eea89a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/dbt/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,8 @@


STDOUT_LOG_FORMAT = '{record.message}'
# TODO: can we change the time to just "{record.time:%Y-%m-%d %H:%M:%S.%f%z}"?
DEBUG_LOG_FORMAT = (
'{record.time:%Y-%m-%d %H:%M:%S%z},{record.time.microsecond:03} '
'{record.time:%Y-%m-%d %H:%M:%S.%f%z} '
'({record.thread_name}): '
'{record.message}'
)
Expand Down

0 comments on commit 2eea89a

Please sign in to comment.