mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-14 11:57:48 +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")
|
||||
return err
|
||||
}
|
||||
ctx.log.V(4).Info("Adding user info logs", "userRequestInfo", userRequestInfo)
|
||||
return ctx.AddJSON(objRaw)
|
||||
}
|
||||
|
||||
|
@ -263,7 +264,7 @@ func (ctx *Context) AddServiceAccount(userName string) error {
|
|||
if err := ctx.AddJSON(saNsRaw); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
ctx.log.V(4).Info("Adding service account", "service account name", saName, "service account namespace", saNamespace)
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue