mik-laj commented on a change in pull request #6622: [AIRLFOW-6024] Do not use 
the logger in CLI
URL: https://github.com/apache/airflow/pull/6622#discussion_r349270863
 
 

 ##########
 File path: airflow/cli/commands/dag_command.py
 ##########
 @@ -125,16 +124,15 @@ def dag_delete(args):
     :return:
     """
     api_client = get_current_api_client()
-    log = LoggingMixin().log
     if args.yes or input(
             "This will drop all existing records related to the specified DAG. 
"
             "Proceed? (y/n)").upper() == "Y":
         try:
             message = api_client.delete_dag(dag_id=args.dag_id)
+            print(message)
         except OSError as err:
-            log.error(err)
+            print(str(err))
             raise AirflowException(err)
 
 Review comment:
   Fixed. Raising exceptions is also not the best solution, but it is another 
problem.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to