Skip to content

Commit

Permalink
added check request duration to debug access logs
Browse files Browse the repository at this point in the history
  • Loading branch information
SamMHD committed Mar 6, 2024
1 parent 7499949 commit ac3d40f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/auth/authenticator.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,9 @@ func (a *Authenticator) Check(ctx context.Context, request *Request) (finalRespo
if a.settings.AccessLogLevel == settings.LogLevelDebug {
a.logger.Info("check request result",
"request", fmt.Sprintf("%#v", *request),
"response", fmt.Sprintf("%#v", *finalResponse))
"response", fmt.Sprintf("%#v", *finalResponse),
"duration", fmt.Sprintf("%vms", time.Since(start_time).Milliseconds()),
)
}
}()

Expand Down

0 comments on commit ac3d40f

Please sign in to comment.