MSP-6964 Add applicationName log field to bypassing unauthorized log
This commit is contained in:
1 parent
9e6846ac03
commit
54a3ac5ed4
1 file changed
+1
@@ -31,6 +31,7 @@ func Authorize(authorizer Authorizer, logger log.Logger) Middleware {
|
||||
ctx.Context(),
|
||||
"bypassing unauthorized request because it has admin privilege",
|
||||
log.Int("applicationId", authData.ApplicationId),
|
||||
log.String("applicationName", authData.AppName),
|
||||
log.Int("adminId", ctx.AdminId()),
|
||||
)
|
||||
return next.Handle(ctx)
|
||||
|
||||
Reference in new issue
Block a user