Skip to content

Commit b2d7e63

Browse files
committed
Improve logging
1 parent 2370607 commit b2d7e63

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

src/main/java/fi/hsl/transitdata/stopestimates/MessageHandler.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ public void handleMessage(Message received) throws Exception {
3636
final List<InternalMessages.StopEstimate> stopEstimates = maybeStopEstimates.get();
3737
stopEstimates.forEach(stopEstimate -> sendPulsarMessage(messageId, stopEstimate, timestamp, key));
3838
} else {
39-
log.warn("Received unexpected schema, ignoring.");
4039
ack(received.getMessageId()); //Ack so we don't receive it again
4140
}
4241
} catch (Exception e) {
@@ -57,7 +56,7 @@ private void sendPulsarMessage(MessageId received, InternalMessages.StopEstimate
5756

5857
String routeId = estimate.getTripInfo().getRouteId();
5958
if (routeId.contains("31M")) {
60-
log.info("Found metro trip. RouteId: {}", routeId);
59+
log.debug("Found metro trip. RouteId: {}", routeId);
6160
}
6261

6362
producer.newMessage()

src/main/java/fi/hsl/transitdata/stopestimates/PubtransStopEstimatesFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ private static boolean validateCommon(PubtransTableProtos.Common common) {
8989
return false;
9090
}
9191
if (common.getType() == 0) {
92-
log.info("Event is for a via point, message discarded");
92+
log.debug("Event is for a via point, message discarded");
9393
return false;
9494
}
9595
return true;

0 commit comments

Comments
 (0)