Skip to content

Commit

Permalink
Even prettier logging
Browse files Browse the repository at this point in the history
  • Loading branch information
jtcohen6 committed Jan 7, 2020
1 parent 2a65072 commit 4377ae0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions macros/external/stage_external_sources.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [] -%}

Expand All @@ -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) %}

Expand Down

0 comments on commit 4377ae0

Please sign in to comment.