Skip to content

Commit

Permalink
Add --warn-error to verbose logging
Browse files Browse the repository at this point in the history
  • Loading branch information
ayobamshy committed Apr 23, 2021
1 parent 19d0d19 commit b56cadd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions airflow_dbt/hooks/dbt_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,12 @@ def run_cli(self, *command):
if self.full_refresh:
dbt_cmd.extend(['--full-refresh'])

if self.verbose:
self.log.info(" ".join(dbt_cmd))

if self.warn_error:
dbt_cmd.insert(1, '--warn-error')

if self.verbose:
self.log.info(" ".join(dbt_cmd))

sp = subprocess.Popen(
dbt_cmd,
stdout=subprocess.PIPE,
Expand Down

0 comments on commit b56cadd

Please sign in to comment.