cloudcommon: tablespec: informer: use %#v to log bad obj

Fixes 145c88f79b ("cloudcommon: tablespec: informer: log obj type")
This commit is contained in:
Yousong Zhou
2020-06-29 14:44:59 +08:00
parent 08cd41b60d
commit 4fc35f92cb
+2 -2
View File
@@ -63,10 +63,10 @@ func (ts *sTableSpec) newInformerModel(dt interface{}) (*informer.ModelObject, e
return nil, errors.Errorf("informer model is not IModel")
}
if obj.GetVirtualObject() == nil {
return nil, errors.Errorf("object %t %v virtual object is nil", obj, obj)
return nil, errors.Errorf("object %#v virtual object is nil", obj)
}
if obj.GetModelManager() == nil {
return nil, errors.Errorf("object %t %v model manager is nil", obj, obj)
return nil, errors.Errorf("object %#v model manager is nil", obj)
}
jointObj, isJoint := obj.(IJointModel)
if isJoint {