未验证 提交 388729e9 编写于 作者: Z zryfish 提交者: GitHub

fix incorrect error log (#2694)

Signed-off-by: NJeff <zw0948@gmail.com>
上级 93b123c1
......@@ -141,8 +141,9 @@ func NewUserController(k8sClient kubernetes.Interface, ksClient kubesphere.Inter
loginRecordInformer.Informer().AddEventHandler(cache.ResourceEventHandlerFuncs{
AddFunc: func(new interface{}) {
err := ctl.enqueueLogin(new)
klog.Errorf("Failed to enqueue login object, error: %v", err)
if err := ctl.enqueueLogin(new); err != nil {
klog.Errorf("Failed to enqueue login object, error: %v", err)
}
},
})
return ctl
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册