@@ -149,6 +149,12 @@ def decorator(func):
149149 else "DEPRECATED! Please use --filters instead! - Filter the alerts by tags:<TAGS> / owners:<OWNERS> / models:<MODELS> / "
150150 "statuses:<warn/fail/error/skipped> / resource_types:<model/test>." ,
151151 )(func )
152+ func = click .option (
153+ "--quiet-logs" ,
154+ is_flag = True ,
155+ default = False ,
156+ help = "Minimize INFO level logs. Only WARNING and above will be shown." ,
157+ )(func )
152158 return func
153159
154160 return decorator
@@ -324,12 +330,14 @@ def monitor(
324330 excludes ,
325331 teams_webhook ,
326332 maximum_columns_in_alert_samples ,
333+ quiet_logs ,
327334):
328335 """
329336 Get alerts on failures in dbt jobs.
330337 """
331338 if ctx .invoked_subcommand is not None :
332339 return
340+
333341 if deprecated_slack_webhook is not None :
334342 click .secho (
335343 '\n "-s" is deprecated and won\' t be supported in the near future.\n '
@@ -356,6 +364,7 @@ def monitor(
356364 report_url = report_url ,
357365 teams_webhook = teams_webhook ,
358366 maximum_columns_in_alert_samples = maximum_columns_in_alert_samples ,
367+ quiet_logs = quiet_logs ,
359368 )
360369 anonymous_tracking = AnonymousCommandLineTracking (config )
361370 anonymous_tracking .set_env ("use_select" , bool (select ))
@@ -450,6 +459,7 @@ def report(
450459 env ,
451460 select ,
452461 target_path ,
462+ quiet_logs ,
453463):
454464 """
455465 Generate a local observability report of your warehouse.
@@ -463,6 +473,7 @@ def report(
463473 target_path ,
464474 dbt_quoting = dbt_quoting ,
465475 env = env ,
476+ quiet_logs = quiet_logs ,
466477 )
467478 anonymous_tracking = AnonymousCommandLineTracking (config )
468479 anonymous_tracking .set_env ("use_select" , bool (select ))
@@ -680,6 +691,7 @@ def send_report(
680691 disable ,
681692 include ,
682693 target_path ,
694+ quiet_logs ,
683695):
684696 """
685697 Generate and send the report to an external platform.
@@ -722,6 +734,7 @@ def send_report(
722734 report_url = report_url ,
723735 env = env ,
724736 project_name = project_name ,
737+ quiet_logs = quiet_logs ,
725738 )
726739 anonymous_tracking = AnonymousCommandLineTracking (config )
727740 anonymous_tracking .set_env ("use_select" , bool (select ))
0 commit comments