From f2261e18e93014207ccb21cbcda8ff00d17cd53d Mon Sep 17 00:00:00 2001 From: kohashimoto Date: Mon, 1 Jul 2024 13:23:18 +0900 Subject: [PATCH] fix(kube/log): prevent removal of leading spaces in container logs --- src/features/pod/kube/log/log_streamer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/features/pod/kube/log/log_streamer.rs b/src/features/pod/kube/log/log_streamer.rs index 55cb1a4a..f32d1d76 100644 --- a/src/features/pod/kube/log/log_streamer.rs +++ b/src/features/pod/kube/log/log_streamer.rs @@ -155,7 +155,7 @@ impl LogStreamer { while let Some(line) = logs.try_next().await? { let mut buf = self.log_buffer.lock().await; - if let Ok((dt, content)) = chrono::DateTime::parse_and_remainder(&line, "%+ ") { + if let Ok((dt, content)) = chrono::DateTime::parse_and_remainder(&line, "%+") { let dt: DateTime = dt.into(); if last_timestamp.is_some_and(|lts| dt <= lts) {