mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-10 12:46:46 +00:00
Update sentry client
This commit is contained in:
@ -18,7 +18,7 @@
|
||||
package pmapi
|
||||
|
||||
import (
|
||||
"github.com/getsentry/raven-go"
|
||||
"github.com/getsentry/sentry-go"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
@ -119,7 +119,11 @@ func (c *client) UpdateUser() (user *User, err error) {
|
||||
}
|
||||
|
||||
c.user = user
|
||||
raven.SetUserContext(&raven.User{ID: user.ID})
|
||||
sentry.ConfigureScope(func(scope *sentry.Scope) {
|
||||
scope.SetUser(sentry.User{
|
||||
ID: user.ID,
|
||||
})
|
||||
})
|
||||
|
||||
var tmpList AddressList
|
||||
if tmpList, err = c.GetAddresses(); err == nil {
|
||||
|
||||
Reference in New Issue
Block a user