nuclearpinguin 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_r348963624
 
 

 ##########
 File path: airflow/cli/commands/dag_command.py
 ##########
 @@ -104,16 +104,15 @@ def dag_trigger(args):
     :return:
     """
     api_client = get_current_api_client()
-    log = LoggingMixin().log
     try:
         message = api_client.trigger_dag(dag_id=args.dag_id,
                                          run_id=args.run_id,
                                          conf=args.conf,
                                          execution_date=args.exec_date)
+        print(message)
     except OSError as err:
-        log.error(err)
+        print(str(err))
         raise AirflowException(err)
 
 Review comment:
   Do we need print here? The same exception with message will be rise.

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to