5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-11-22 23:00:28 +00:00

Fix noisy whatsapp error logging

This commit is contained in:
Wim 2019-06-13 23:30:47 +02:00
parent ce7b749fd5
commit 8e97cbab1e

View File

@ -18,6 +18,10 @@ Check:
// HandleError received from WhatsApp // HandleError received from WhatsApp
func (b *Bwhatsapp) HandleError(err error) { 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 b.Log.Errorf("%v", err) // TODO implement proper handling? at least respond to different error types
} }