[ADD] Add debug log output

This commit is contained in:
zhoujunhao 2018-10-11 11:34:25 +08:00
parent bf188ed990
commit 3b421e11a9

View File

@ -624,11 +624,13 @@ func (s *ServiceAction) ServiceCreate(sc *api_model.ServiceStruct) error {
println("======10")
serviceType, err := db.GetManager().TenantServiceLabelDao().GetTenantServiceTypeLabel(volumn.ServiceID)
println("======11")
println(serviceType,err,"======11.1")
if err != nil {
println("======12")
tx.Rollback()
return util.CreateAPIHandleErrorFromDBError("service type", err)
}
println("======12.1")
if serviceType.LabelValue != core_util.StatefulServiceType {
println("======13")
tx.Rollback()