You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "hussein-awala (via GitHub)" <gi...@apache.org> on 2023/08/28 22:04:30 UTC

[GitHub] [airflow] hussein-awala commented on a diff in pull request #33862: Replace print by logger.info in db_cleanup util

hussein-awala commented on code in PR #33862:
URL: https://github.com/apache/airflow/pull/33862#discussion_r1308004599


##########
airflow/utils/db_cleanup.py:
##########
@@ -425,7 +424,7 @@ def run_cleanup(
     clean_before_timestamp = timezone.coerce_datetime(clean_before_timestamp)
     effective_table_names, effective_config_dict = _effective_table_names(table_names=table_names)
     if dry_run:
-        print("Performing dry run for db cleanup.")
+        logger.info("Performing dry run for db cleanup.")
         print(
             f"Data prior to {clean_before_timestamp} would be purged "
             f"from tables {effective_table_names} with the following config:\n"

Review Comment:
   not sure about this one



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org