From 551bf42c666b4cc4b87ba9f74af450bdc36cfb04 Mon Sep 17 00:00:00 2001 From: Matt Ball Date: Wed, 5 Feb 2020 16:42:53 -0700 Subject: [PATCH] Update DEBUG_LOG_FORMAT to correctly zero-pad the microsecond portion of the timestamp --- core/dbt/logger.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/dbt/logger.py b/core/dbt/logger.py index 086c1d5b88f..dd585b6ab5c 100644 --- a/core/dbt/logger.py +++ b/core/dbt/logger.py @@ -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}' )