diff options
author | Wim <wim@42.be> | 2019-06-13 23:30:47 +0200 |
---|---|---|
committer | Wim <wim@42.be> | 2019-06-14 00:02:32 +0200 |
commit | 8e97cbab1e74ef0e665c5ddc90e3eb536683c833 (patch) | |
tree | 9e7a5d42eba3b623b905ec37a8367bbc02ef2327 | |
parent | ce7b749fd54be871ce62934fca7978b165809e87 (diff) | |
download | matterbridge-msglm-8e97cbab1e74ef0e665c5ddc90e3eb536683c833.tar.gz matterbridge-msglm-8e97cbab1e74ef0e665c5ddc90e3eb536683c833.tar.bz2 matterbridge-msglm-8e97cbab1e74ef0e665c5ddc90e3eb536683c833.zip |
Fix noisy whatsapp error logging
-rw-r--r-- | bridge/whatsapp/handlers.go | 4 |
1 files changed, 4 insertions, 0 deletions
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 } |