Skip to content

Commit

Permalink
Fix tail=false but still log issue (GoogleContainerTools#6299)
Browse files Browse the repository at this point in the history
  • Loading branch information
azhao155 authored and halvards committed Jul 28, 2021
1 parent f8ce09a commit 0acbddf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/skaffold/kubernetes/logger/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func (a *LogAggregator) Start(ctx context.Context, out io.Writer) error {
continue
}

if !a.trackedContainers.add(c.ContainerID) {
if !a.trackedContainers.add(c.ContainerID) && a.config.Tail() {
go a.streamContainerLogs(ctx, pod, c)
}
}
Expand Down

0 comments on commit 0acbddf

Please sign in to comment.