Skip to content

Commit

Permalink
修复kie日志打印配置信息 (#290)
Browse files Browse the repository at this point in the history
  • Loading branch information
tornado-ssy authored Jul 27, 2023
1 parent e005d80 commit 8275bfe
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions server/service/kv/kv_svc.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func Create(ctx context.Context, kv *model.KVDoc) (*model.KVDoc, *errsvc.Error)
fmt.Sprintf("can not updateKeyValue version for [%s] [%s] in [%s]",
kv.Key, kv.Labels, kv.Domain))
}
openlog.Debug(fmt.Sprintf("create %s with labels %s value [%s]", kv.Key, kv.Labels, kv.Value))
openlog.Debug(fmt.Sprintf("create %s with labels %s length [%d]", kv.Key, kv.Labels, len(kv.Value)))
datasource.ClearPart(kv)
return kv, nil
}
Expand Down Expand Up @@ -246,17 +246,17 @@ func Update(ctx context.Context, kv *model.UpdateKVRequest) (*model.KVDoc, error
return nil, err
}
openlog.Info(
fmt.Sprintf("update %s with labels %s value [%s]",
oldKV.Key, oldKV.Labels, kv.Value))
fmt.Sprintf("update %s with labels %s length [%d]",
oldKV.Key, oldKV.Labels, len(kv.Value)))
err = datasource.GetBroker().GetHistoryDao().AddHistory(ctx, oldKV)
if err != nil {
openlog.Error(
fmt.Sprintf("can not add revision for [%s] [%s] in [%s],err: %s",
oldKV.Key, oldKV.Labels, kv.Domain, err))
}
openlog.Debug(
fmt.Sprintf("add history %s with labels %s value [%s]",
oldKV.Key, oldKV.Labels, oldKV.Value))
fmt.Sprintf("add history %s with labels %s length [%d]",
oldKV.Key, oldKV.Labels, len(oldKV.Value)))
datasource.ClearPart(oldKV)
return oldKV, nil

Expand Down

0 comments on commit 8275bfe

Please sign in to comment.