#555 Log the exception if one is raised while processing a message received by fedora-messaging
Merged 4 years ago by lholecek. Opened 4 years ago by pingou.
pingou/greenwave log_error  into  master

@@ -62,6 +62,8 @@ 

              messaging_rx_processed_ok_counter.labels(handler="resultsdb").inc()

          except Exception:

              messaging_rx_failed_counter.labels(handler="resultsdb").inc()

+             log.exception("Could not correctly consume the message with "

+                           "ResultsDBHandler")

              raise

  

      elif message.topic.endswith('waiver.new'):
@@ -81,6 +83,8 @@ 

              messaging_rx_processed_ok_counter.labels(handler="waiverdb").inc()

          except Exception:

              messaging_rx_failed_counter.labels(handler="waiverdb").inc()

+             log.exception("Could not correctly consume the message with "

+                           "WaiverDBHandler")

              raise

      else:

          messaging_rx_ignored_counter.inc()

Signed-off-by: Pierre-Yves Chibon pingou@pingoured.fr

Pull-Request has been merged by lholecek

4 years ago
Metadata