Skip to content

Commit

Permalink
Suppress backlog (optionally)
Browse files Browse the repository at this point in the history
See PR gliderlabs#201. Set BACKLOG=false to disable default behaviour of sending backlogs.
  • Loading branch information
olivergrahl authored Nov 16, 2016
1 parent 647c2c7 commit d7a42d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion router/pump.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func (p *LogsPump) Run() error {
debug("pump.Run() event:", normalID(event.ID), event.Status)
switch event.Status {
case "start", "restart":
go p.pumpLogs(event, true, inactivityTimeout)
go p.pumpLogs(event, os.Getenv("BACKLOG") != "false", inactivityTimeout)
case "rename":
go p.rename(event)
case "die":
Expand Down

0 comments on commit d7a42d8

Please sign in to comment.