From 8e97cbab1e74ef0e665c5ddc90e3eb536683c833 Mon Sep 17 00:00:00 2001 From: Wim Date: Thu, 13 Jun 2019 23:30:47 +0200 Subject: Fix noisy whatsapp error logging --- bridge/whatsapp/handlers.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bridge/whatsapp/handlers.go') diff --git a/bridge/whatsapp/handlers.go b/bridge/whatsapp/handlers.go index d61f6b24..3fe15889 100644 --- a/bridge/whatsapp/handlers.go +++ b/bridge/whatsapp/handlers.go @@ -18,6 +18,10 @@ Check: // HandleError received from WhatsApp func (b *Bwhatsapp) HandleError(err error) { + // ignore received invalid data errors. https://github.com/42wim/matterbridge/issues/843 + if strings.Contains(err.Error(), "error processing data: received invalid data") { + return + } b.Log.Errorf("%v", err) // TODO implement proper handling? at least respond to different error types } -- cgit v1.2.3