Add error handling on subscriber handler functions

This commit is contained in:
James Mills 2018-03-27 01:40:03 -07:00
parent 278edd7e71
commit fcaf76b14d
No known key found for this signature in database
GPG Key ID: AC4C014F1440EBD6

View File

@ -244,6 +244,9 @@ func (s *Subscriber) Reader() {
s.errch <- err
break
}
s.handler(msg)
err = s.handler(msg)
if err != nil {
log.Errorf("error handling message: %s", err)
}
}
}