From 51e4c5e1b7f0990edaa38aac439f3c1a31f06263 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 11 Jul 2019 21:55:57 -0400 Subject: [PATCH] filter out heartbeat warning log --- src/Notifications/Startup.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Notifications/Startup.cs b/src/Notifications/Startup.cs index 30f4ed94de..0543fb0687 100644 --- a/src/Notifications/Startup.cs +++ b/src/Notifications/Startup.cs @@ -102,6 +102,11 @@ namespace Bit.Notifications return false; } + if(e.Level == LogEventLevel.Warning && e.MessageTemplate.Text.StartsWith("Heartbeat took longer")) + { + return false; + } + return e.Level >= LogEventLevel.Warning; });