Begin work on debugging user behavior in early setup
This commit is contained in:
parent
655f26e218
commit
97ea4ad3bb
5 changed files with 14 additions and 10 deletions
|
|
@ -9,6 +9,7 @@ import (
|
|||
"github.com/Gleipnir-Technology/nidus-sync/db"
|
||||
enums "github.com/Gleipnir-Technology/nidus-sync/db/enums"
|
||||
"github.com/Gleipnir-Technology/nidus-sync/db/models"
|
||||
"github.com/Gleipnir-Technology/nidus-sync/debug"
|
||||
"github.com/aarondl/opt/omit"
|
||||
"github.com/aarondl/opt/omitnull"
|
||||
"github.com/rs/zerolog/log"
|
||||
|
|
@ -56,7 +57,7 @@ func notifyOauthInvalid(ctx context.Context, user *models.User) {
|
|||
log.Info().Str("msg", msg).Int("user_id", int(user.ID)).Msg("Refusing to add another notification with the same type")
|
||||
return
|
||||
}
|
||||
LogErrorTypeInfo(err)
|
||||
debug.LogErrorTypeInfo(err)
|
||||
log.Error().Err(err).Msg("Failed to insert new notification. This is a programmer bug.")
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue