From 0b00bf779bf53f441e5097e944562e8dfd3b17bb Mon Sep 17 00:00:00 2001 From: xiangjinwu <17769960+xiangjinwu@users.noreply.github.com> Date: Thu, 25 Jan 2024 17:43:21 +0800 Subject: [PATCH] fix(error): log error field in stream reader retry loop (#14792) --- src/stream/src/executor/source/source_executor.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/stream/src/executor/source/source_executor.rs b/src/stream/src/executor/source/source_executor.rs index 1bb61789f135..52ac47b8dd26 100644 --- a/src/stream/src/executor/source/source_executor.rs +++ b/src/stream/src/executor/source/source_executor.rs @@ -234,9 +234,10 @@ impl SourceExecutor { ) -> StreamExecutorResult<()> { let core = self.stream_source_core.as_mut().unwrap(); tracing::warn!( - "stream source reader error, actor: {:?}, source: {:?}", - self.actor_ctx.id, - core.source_id, + error = ?e.as_report(), + actor_id = self.actor_ctx.id, + source_id = %core.source_id, + "stream source reader error", ); GLOBAL_ERROR_METRICS.user_source_reader_error.report([ "SourceReaderError".to_owned(),