File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed
Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -31,10 +31,8 @@ def get_log_path(ctx):
3131
3232def get_quiet_logs (ctx ):
3333 try :
34- ctx_args = ctx .args
35- idx = ctx_args .index ("--quiet-logs" )
36- return ctx_args [idx + 1 ].lower () == "true"
37- except (ValueError , IndexError ):
34+ return "--quiet-logs" in ctx .args
35+ except (ValueError , AttributeError ):
3836 return False
3937
4038
Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ def __init__(
7575 env : str = DEFAULT_ENV ,
7676 run_dbt_deps_if_needed : Optional [bool ] = None ,
7777 project_name : Optional [str ] = None ,
78+ quiet_logs : Optional [bool ] = None ,
7879 ):
7980 self .config_dir = config_dir
8081 self .profiles_dir = profiles_dir
Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ def decorator(func):
151151 )(func )
152152 func = click .option (
153153 "--quiet-logs" ,
154- type = bool ,
154+ is_flag = True ,
155155 default = False ,
156156 help = "Minimize INFO level logs. Only WARNING and above will be shown." ,
157157 )(func )
@@ -364,6 +364,7 @@ def monitor(
364364 report_url = report_url ,
365365 teams_webhook = teams_webhook ,
366366 maximum_columns_in_alert_samples = maximum_columns_in_alert_samples ,
367+ quiet_logs = quiet_logs ,
367368 )
368369 anonymous_tracking = AnonymousCommandLineTracking (config )
369370 anonymous_tracking .set_env ("use_select" , bool (select ))
@@ -472,6 +473,7 @@ def report(
472473 target_path ,
473474 dbt_quoting = dbt_quoting ,
474475 env = env ,
476+ quiet_logs = quiet_logs ,
475477 )
476478 anonymous_tracking = AnonymousCommandLineTracking (config )
477479 anonymous_tracking .set_env ("use_select" , bool (select ))
@@ -732,6 +734,7 @@ def send_report(
732734 report_url = report_url ,
733735 env = env ,
734736 project_name = project_name ,
737+ quiet_logs = quiet_logs ,
735738 )
736739 anonymous_tracking = AnonymousCommandLineTracking (config )
737740 anonymous_tracking .set_env ("use_select" , bool (select ))
You can’t perform that action at this time.
0 commit comments