Skip to content

Commit

Permalink
Merge pull request #1458 from buildpacks-community/AddBuildTimeStamp
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkennedy513 authored Dec 19, 2023
2 parents 73afa36 + 2e3324e commit 29114da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/logs/build_logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ func (c *BuildLogsClient) GetImageLogs(ctx context.Context, writer io.Writer, im
}, false, false)
}

func (c *BuildLogsClient) TailBuildName(ctx context.Context, writer io.Writer, namespace string, buildName string) error {
func (c *BuildLogsClient) TailBuildName(ctx context.Context, writer io.Writer, namespace string, buildName string, timestamp bool) error {
return c.tailPods(ctx, writer, namespace, metav1.ListOptions{
Watch: true,
LabelSelector: fmt.Sprintf("%s=%s", buildapi.BuildLabel, buildName),
}, true, true, false)
}, true, true, timestamp)
}

func (c *BuildLogsClient) tailPods(ctx context.Context, writer io.Writer, namespace string, listOptions metav1.ListOptions, exitPodComplete bool, follow, timestamp bool) error {
Expand Down

0 comments on commit 29114da

Please sign in to comment.