Skip to content

Commit

Permalink
add more prefix
Browse files Browse the repository at this point in the history
Signed-off-by: Fluder-Paradyne <[email protected]>
  • Loading branch information
Fluder-Paradyne committed Dec 29, 2024
1 parent d6b162c commit 9eccac9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/application/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ func parseLogsStream(podName string, stream io.ReadCloser, ch chan logEntry) {
timeStampStr := parts[0]
logTime, err := time.Parse(time.RFC3339Nano, timeStampStr)
if err != nil {
if strings.HasPrefix(line, "unable to retrieve container logs for ") {
if strings.HasPrefix(line, "unable to retrieve container logs for ") ||
strings.HasPrefix(line, "Unable to retrieve container logs for ") {
ch <- logEntry{line: line, podName: podName, timeStamp: time.Now()}
break
}
Expand Down

0 comments on commit 9eccac9

Please sign in to comment.