update failure logs (#2998)

Co-authored-by: aviator-app[bot] <48659329+aviator-app[bot]@users.noreply.github.com>
This commit is contained in:
Keepers 2023-04-03 08:40:01 -06:00 committed by GitHub
parent 4087b69a39
commit dcf5ea2415
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -144,7 +144,7 @@ func SendStartCorsoEvent(
) {
bus, err := events.NewBus(ctx, s, tenID, opts)
if err != nil {
logger.Ctx(ctx).Infow("analytics event failure", "err", err)
logger.CtxErr(ctx, err).Info("sending start event")
}
bus.SetRepoID(repoID)

View File

@ -138,7 +138,7 @@ func (b Bus) Event(ctx context.Context, key string, data map[string]any) {
Set(tenantID, b.tenant),
})
if err != nil {
logger.Ctx(ctx).Debugw("analytics event failure", "err", err)
logger.CtxErr(ctx, err).Debug("analytics event failure: repo identity")
}
}
@ -149,7 +149,7 @@ func (b Bus) Event(ctx context.Context, key string, data map[string]any) {
Properties: props,
})
if err != nil {
logger.Ctx(ctx).Info("analytics event failure", "err", err)
logger.CtxErr(ctx, err).Info("analytics event failure: tracking event")
}
}