Skip to content

Commit 80bafcb

Browse files
committed
Add comment about pod logs
1 parent 91e4543 commit 80bafcb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/get_pod_logs.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ func GetPodLogsForResource(ctx context.Context, c client.Client, restConfig *res
8181
logs = strings.TrimSuffix(logs, "\n")
8282
res := strings.Split(logs, "\n")
8383
for _, line := range res {
84+
// Note: this assumes a log line is a JSON object with a "ts" key.
8485
searchString := "{\"ts\":"
8586
if strings.Contains(line, searchString) {
8687
jsonMap := make(map[string]interface{})

0 commit comments

Comments
 (0)