From 4377ae04317913e37dd5bf12f2c50bada3b0a91f Mon Sep 17 00:00:00 2001 From: Jeremy Cohen Date: Tue, 7 Jan 2020 11:42:59 -0500 Subject: [PATCH] Even prettier logging --- macros/external/stage_external_sources.sql | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/macros/external/stage_external_sources.sql b/macros/external/stage_external_sources.sql index 843ef155..a0b67b1f 100644 --- a/macros/external/stage_external_sources.sql +++ b/macros/external/stage_external_sources.sql @@ -4,7 +4,8 @@ {% if node.resource_type == 'source' and node.external.location != none %} - {%- do log('Staging external table ' ~ node.source_name ~ '.' ~ node.name, info = true) -%} + {% set ts = modules.datetime.datetime.now().strftime('%H:%M:%S') %} + {%- do log(ts ~ ' + Staging external table ' ~ node.source_name ~ '.' ~ node.name, info = true) -%} {%- set run_queue = [] -%} @@ -25,8 +26,8 @@ {{ q }} {% endcall %} - {% set status = load_result('runner')['status'] %} {% set ts = modules.datetime.datetime.now().strftime('%H:%M:%S') %} + {% set status = load_result('runner')['status'] %} {% set msg = ts ~ ' + (' ~ loop.index ~ ') ' ~ status %} {% do log(msg, info = true) %}