From 6ee8d2cdc5e7d7386704bfed3350d7ff227bf854 Mon Sep 17 00:00:00 2001 From: amyangfei Date: Thu, 18 Nov 2021 21:57:48 +0800 Subject: [PATCH] ticdc/reactor: log capture info when remote capture is offline (#3515) --- pkg/orchestrator/reactor_state.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/orchestrator/reactor_state.go b/pkg/orchestrator/reactor_state.go index def5d833e7c..2dc8e2b0415 100644 --- a/pkg/orchestrator/reactor_state.go +++ b/pkg/orchestrator/reactor_state.go @@ -60,7 +60,9 @@ func (s *GlobalReactorState) Update(key util.EtcdKey, value []byte, _ bool) erro return nil case etcd.CDCKeyTypeCapture: if value == nil { - log.Info("remote capture offline", zap.String("capture-id", k.CaptureID)) + log.Info("remote capture offline", + zap.String("capture-id", k.CaptureID), + zap.Any("info", s.Captures[k.CaptureID])) delete(s.Captures, k.CaptureID) return nil }