You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2019/07/15 11:00:11 UTC

[GitHub] [airflow] ashb commented on a change in pull request #5589: [WIP][AIRFLOW-4956] Fix LocalTaskJob heartbeat log spamming

ashb commented on a change in pull request #5589: [WIP][AIRFLOW-4956] Fix LocalTaskJob heartbeat log spamming
URL: https://github.com/apache/airflow/pull/5589#discussion_r303379011
 
 

 ##########
 File path: airflow/jobs/base_job.py
 ##########
 @@ -192,7 +192,7 @@ def heartbeat(self):
                 self.heartbeat_callback(session=session)
                 self.log.debug('[heartbeat]')
         except OperationalError as e:
-            self.log.error("Scheduler heartbeat got an exception: %s", str(e))
+            self.log.exception("%s heartbeat got an exception: %s", self.__class__, str(e))
 
 Review comment:
   This will also include the stack trace of the exception - was that intended?

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


With regards,
Apache Git Services