You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by li...@apache.org on 2022/09/20 01:01:13 UTC
[servicecomb-service-center] branch master updated: [fix]syncer log print typo (#1342)
This is an automated email from the ASF dual-hosted git repository.
littlecui pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-service-center.git
The following commit(s) were added to refs/heads/master by this push:
new ea21499d [fix]syncer log print typo (#1342)
ea21499d is described below
commit ea21499d52d95ce2546c520c2650e858ef3ef628
Author: little-cui <su...@qq.com>
AuthorDate: Tue Sep 20 09:01:07 2022 +0800
[fix]syncer log print typo (#1342)
---
syncer/service/replicator/replicator.go | 2 +-
syncer/service/replicator/resource/config.go | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/syncer/service/replicator/replicator.go b/syncer/service/replicator/replicator.go
index ae289940..d7f1e3d4 100644
--- a/syncer/service/replicator/replicator.go
+++ b/syncer/service/replicator/replicator.go
@@ -213,7 +213,7 @@ func (r *replicatorManager) Persist(ctx context.Context, el *v1sync.EventList) [
result = r.Operate(ctx)
results = append(results, result.WithEventID(event.Id))
- log.Info(fmt.Sprintf("operate resource %s, %s", event.Flag(), result.Flag()))
+ log.Info(fmt.Sprintf("operate resource, event: %s, result: %s", event.Flag(), result.Flag()))
}
for _, result := range results {
diff --git a/syncer/service/replicator/resource/config.go b/syncer/service/replicator/resource/config.go
index cb45f22e..80ac5b43 100644
--- a/syncer/service/replicator/resource/config.go
+++ b/syncer/service/replicator/resource/config.go
@@ -192,7 +192,7 @@ func (c *kvConfig) Delete(ctx context.Context, ID string) error {
func (c *kvConfig) CreateHandle(ctx context.Context) error {
if c.cur != nil {
- log.Warn(fmt.Sprintf("create config but doc id exist, %s", c.resourceID))
+ log.Warn(fmt.Sprintf("create config action but doc id exist, %s", c.resourceID))
return c.UpdateHandle(ctx)
}
return c.resource.Create(ctx, c.input)
@@ -200,7 +200,7 @@ func (c *kvConfig) CreateHandle(ctx context.Context) error {
func (c *kvConfig) UpdateHandle(ctx context.Context) error {
if c.cur == nil {
- log.Warn(fmt.Sprintf("update action but account not exist, %s", c.resourceID))
+ log.Warn(fmt.Sprintf("update config action but doc id not exist, %s", c.resourceID))
return c.CreateHandle(ctx)
}
return c.resource.Update(ctx, c.input)