Commit ad669a7c authored by Sietse Ringers's avatar Sietse Ringers
Browse files

chore: report log entry creation errors

parent 4a61a6dd
......@@ -9,6 +9,7 @@ import (
"strings"
"github.com/bwesterb/go-atum"
"github.com/getsentry/raven-go"
"github.com/go-errors/errors"
"github.com/privacybydesign/gabi"
"github.com/privacybydesign/gabi/big"
......@@ -398,6 +399,7 @@ func (session *session) sendResponse(message interface{}) {
log, err = session.createLogEntry(message)
if err != nil {
irma.Logger.Warn(errors.WrapPrefix(err, "Failed to create log entry", 0).ErrorStack())
raven.CaptureError(err, nil)
}
case irma.ActionDisclosing:
messageJson, err = json.Marshal(message)
......@@ -419,6 +421,7 @@ func (session *session) sendResponse(message interface{}) {
log, err = session.createLogEntry(message)
if err != nil {
irma.Logger.Warn(errors.WrapPrefix(err, "Failed to create log entry", 0).ErrorStack())
raven.CaptureError(err, nil)
}
case irma.ActionIssuing:
response := []*gabi.IssueSignatureMessage{}
......@@ -433,6 +436,7 @@ func (session *session) sendResponse(message interface{}) {
log, err = session.createLogEntry(message)
if err != nil {
irma.Logger.Warn(errors.WrapPrefix(err, "Failed to create log entry", 0).ErrorStack())
raven.CaptureError(err, nil)
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment