From 24a4709cffb352bcffe0efef88f53cd2c934adeb Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Mon, 15 Jul 2019 11:14:48 +0100 Subject: [PATCH] log out of order events now that the rate is lower --- services/real-time/app/coffee/EventLogger.coffee | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/services/real-time/app/coffee/EventLogger.coffee b/services/real-time/app/coffee/EventLogger.coffee index 5e727759d6..332973659b 100644 --- a/services/real-time/app/coffee/EventLogger.coffee +++ b/services/real-time/app/coffee/EventLogger.coffee @@ -35,12 +35,11 @@ module.exports = EventLogger = return # order is ok if (count == previous) metrics.inc "event.#{channel}.duplicate" - if Math.random() < 0.01 - logger.warn {channel:channel, message_id:message_id}, "duplicate event (sampled at 1%)" + logger.warn {channel:channel, message_id:message_id}, "duplicate event" return "duplicate" else metrics.inc "event.#{channel}.out-of-order" - # logger.warn {channel:channel, message_id:message_id, key:key, previous: previous, count:count}, "out of order event" + logger.warn {channel:channel, message_id:message_id, key:key, previous: previous, count:count}, "out of order event" return "out-of-order" _storeEventCount: (key, count) ->