Skip to content

Commit

Permalink
Merge pull request #5649 from Skanetrafiken/siri-azure-updater-logging
Browse files Browse the repository at this point in the history
Siri azure updaters: Reduce some log levels
  • Loading branch information
habrahamsson-skanetrafiken authored Feb 1, 2024
2 parents 006bcbe + 391b643 commit 9ed5f22
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ protected void messageConsumer(ServiceBusReceivedMessageContext messageContext)
MESSAGE_COUNTER.incrementAndGet();

if (MESSAGE_COUNTER.get() % 100 == 0) {
LOG.info("Total SIRI-ET messages received={}", MESSAGE_COUNTER.get());
LOG.debug("Total SIRI-ET messages received={}", MESSAGE_COUNTER.get());
}

processMessage(message.getBody().toString(), message.getMessageId());
Expand Down Expand Up @@ -169,7 +169,7 @@ private List<EstimatedTimetableDeliveryStructure> getUpdates(String message, Str
siri.getServiceDelivery().getEstimatedTimetableDeliveries().isEmpty()
) {
if (siri.getHeartbeatNotification() != null) {
LOG.info("Received SIRI heartbeat message");
LOG.debug("Received SIRI heartbeat message");
} else {
LOG.warn("Empty Siri message {}: {}", id, message);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ private Siri getSiri(String message, String id) throws XMLStreamException, JAXBE
siri.getServiceDelivery().getSituationExchangeDeliveries().isEmpty()
) {
if (siri.getHeartbeatNotification() != null) {
LOG.info("Received SIRI heartbeat message");
LOG.debug("Received SIRI heartbeat message");
} else {
LOG.warn("Empty Siri message for messageId {}", id);
LOG.debug(message);
Expand Down

0 comments on commit 9ed5f22

Please sign in to comment.