mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-31 03:45:17 +00:00
fix logger format (#4474)
Signed-off-by: ShutingZhao <shuting@nirmata.com>
This commit is contained in:
parent
599a68e896
commit
99f6dedb20
1 changed files with 2 additions and 2 deletions
|
@ -344,12 +344,12 @@ func OverrideRuntimeErrorHandler() {
|
|||
logger := log.Log.WithName("RuntimeErrorHandler")
|
||||
if len(runtime.ErrorHandlers) > 0 {
|
||||
runtime.ErrorHandlers[0] = func(err error) {
|
||||
logger.V(6).Info("runtime error: %s", err)
|
||||
logger.V(6).Info("runtime error", "msg", err.Error())
|
||||
}
|
||||
} else {
|
||||
runtime.ErrorHandlers = []func(err error){
|
||||
func(err error) {
|
||||
logger.V(6).Info("runtime error: %s", err)
|
||||
logger.V(6).Info("runtime error", "msg", err.Error())
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue