mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-31 03:45:17 +00:00
Adding log statements in context.go (#2483)
* adding logs in context.go Signed-off-by: anushkamittal20 <anumittal4641@gmail.com> * minor modifications Signed-off-by: anushkamittal20 <anumittal4641@gmail.com>
This commit is contained in:
parent
ae4fb488bf
commit
7963263776
1 changed files with 2 additions and 1 deletions
|
@ -215,6 +215,7 @@ func (ctx *Context) AddUserInfo(userRequestInfo kyverno.RequestInfo) error {
|
||||||
ctx.log.Error(err, "failed to marshal the UserInfo")
|
ctx.log.Error(err, "failed to marshal the UserInfo")
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
ctx.log.V(4).Info("Adding user info logs", "userRequestInfo", userRequestInfo)
|
||||||
return ctx.AddJSON(objRaw)
|
return ctx.AddJSON(objRaw)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -263,7 +264,7 @@ func (ctx *Context) AddServiceAccount(userName string) error {
|
||||||
if err := ctx.AddJSON(saNsRaw); err != nil {
|
if err := ctx.AddJSON(saNsRaw); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
ctx.log.V(4).Info("Adding service account", "service account name", saName, "service account namespace", saNamespace)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue