Skip to content

Commit

Permalink
Logs: Forward the error from the failing case to emitUsageEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
smallinsky committed Nov 19, 2024
1 parent aeaa0ad commit c074cb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/auth/userloginstate/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func (g *Generator) Generate(ctx context.Context, user types.User) (*userloginst
if g.usageEvents != nil {
// Emit the usage event metadata.
if err := g.emitUsageEvent(ctx, user, uls); err != nil {
g.log.Debug("Error emitting usage event during user login state generation, skipping")
g.log.WithError(err).Debug("Error emitting usage event during user login state generation, skipping")
}
}

Expand Down

0 comments on commit c074cb6

Please sign in to comment.