mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
API: Fixes request logging middleware to include userId, orgId, uname (#47183)
Fixes #47006
This commit is contained in:
committed by
GitHub
parent
9d3b701797
commit
16db1ad46d
@@ -137,7 +137,7 @@ func (h *ContextHandler) Middleware(mContext *web.Context) {
|
||||
case h.initContextWithAnonymousUser(reqContext):
|
||||
}
|
||||
|
||||
reqContext.Logger = log.New("context", "userId", reqContext.UserId, "orgId", reqContext.OrgId, "uname", reqContext.Login)
|
||||
reqContext.Logger = reqContext.Logger.New("userId", reqContext.UserId, "orgId", reqContext.OrgId, "uname", reqContext.Login)
|
||||
span.AddEvents(
|
||||
[]string{"uname", "orgId", "userId"},
|
||||
[]tracing.EventValue{
|
||||
|
||||
Reference in New Issue
Block a user