Skip to content

Commit

Permalink
storage: use DPanic for etcd trace
Browse files Browse the repository at this point in the history
  • Loading branch information
BeryJu committed Jan 5, 2025
1 parent 45c4dd5 commit cf84879
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/storage/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func NewClient(prefix string, logger *zap.Logger, debug bool, endpoints ...strin
}
cli.KV = trace.NewKV(namespace.NewKV(cli.KV, prefix), func(op clientv3.Op) {
if debug {
logger.Warn("etcd op without transaction", zap.String("key", string(op.KeyBytes())), zap.String("op", trace.NameFromOp(op)))
logger.DPanic("etcd op without transaction", zap.String("key", string(op.KeyBytes())), zap.String("op", trace.NameFromOp(op)))
}
})
cli.Watcher = namespace.NewWatcher(cli.Watcher, prefix)
Expand Down

0 comments on commit cf84879

Please sign in to comment.