Skip to content

Commit 71076ee

Browse files
committed
update error logs
1 parent c07313e commit 71076ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

enterprise/replicasync/replicasync.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ func (m *Manager) loop(ctx context.Context) {
171171
}
172172
err := m.syncReplicas(ctx)
173173
if err != nil && !errors.Is(err, context.Canceled) {
174-
m.logger.Warn(ctx, "run replica update loop", slog.Error(err))
174+
m.logger.Error(ctx, "run replica update loop", slog.Error(err))
175175
}
176176
}
177177
}
@@ -192,7 +192,7 @@ func (m *Manager) subscribe(ctx context.Context) error {
192192
update = func() {
193193
err := m.syncReplicas(ctx)
194194
if err != nil && !errors.Is(err, context.Canceled) {
195-
m.logger.Warn(ctx, "run replica from subscribe", slog.Error(err))
195+
m.logger.Error(ctx, "run replica from subscribe", slog.Error(err))
196196
}
197197
updateMutex.Lock()
198198
if needsUpdate {

0 commit comments

Comments
 (0)