[fix]syncer log print typo (#1342)
diff --git a/syncer/service/replicator/replicator.go b/syncer/service/replicator/replicator.go
index ae28994..d7f1e3d 100644
--- a/syncer/service/replicator/replicator.go
+++ b/syncer/service/replicator/replicator.go
@@ -213,7 +213,7 @@
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 cb45f22..80ac5b4 100644
--- a/syncer/service/replicator/resource/config.go
+++ b/syncer/service/replicator/resource/config.go
@@ -192,7 +192,7 @@
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) 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)