Skip to content

Commit

Permalink
Don't stream previous logs
Browse files Browse the repository at this point in the history
refs #8
  • Loading branch information
boz committed Sep 26, 2017
1 parent dee52d1 commit f6555d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ func (m *_monitor) mainloop(ctx context.Context, donech chan struct{}) {
m.lc.ShutdownAsync(nil)
return
default:
m.log.ErrWarn(err, "streaming done")
m.lc.ShutdownAsync(err)
return
}
Expand All @@ -114,7 +115,6 @@ func (m *_monitor) readloop(ctx context.Context, since *int64) error {
defer m.log.Un(m.log.Trace("readloop"))

opts := &v1.PodLogOptions{
Previous: true,
Container: m.source.Container(),
Follow: true,
SinceSeconds: since,
Expand Down

0 comments on commit f6555d7

Please sign in to comment.