Add logging to capture user email upon successful login (#7927)
* Log user email upon successful login * Add user email to logger context * Use logging.With Extras for login email
This commit is contained in:
@@ -132,7 +132,6 @@ func (l *LoggingContext) Log(ctx context.Context, logger kitlog.Logger) {
|
||||
}
|
||||
keyvals = append(keyvals, "user", loggedInUser)
|
||||
}
|
||||
|
||||
requestMethod, ok := ctx.Value(kithttp.ContextKeyRequestMethod).(string)
|
||||
if !ok {
|
||||
requestMethod = ""
|
||||
|
||||
Reference in New Issue
Block a user