Skip to content

Commit 48dbd30

Browse files
ab-ghoshtekton-robot
authored andcommitted
Add flag to prefix log lines with log source (task and step name) by default
Signed-off-by: Abhishek Ghosh <abhi.ghosh3108@gmail.com>
1 parent ca38c1b commit 48dbd30

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

pkg/cmd/pipeline/logs.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ Show logs for given Pipeline and PipelineRun:
9797
c.Flags().BoolVarP(&opts.Follow, "follow", "f", false, "stream live logs")
9898
c.Flags().BoolVarP(&opts.Timestamps, "timestamps", "t", false, "show logs with timestamp")
9999
c.Flags().IntVarP(&opts.Limit, "limit", "", 5, "lists number of PipelineRuns")
100+
c.Flags().BoolVarP(&opts.Prefixing, "prefix", "", true, "prefix each log line with the log source (task name and step name)")
100101

101102
return c
102103
}

0 commit comments

Comments
 (0)