Skip to content

Commit

Permalink
commands: Truncate the error log on repeated config errors
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Oct 26, 2018
1 parent 40e9967 commit 1e9ac3d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions commands/commandeer.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,11 @@ func (c *commandeer) loadConfig(mustHaveConfigFile, running bool) error {
c.DepsCfg = &deps.DepsCfg{}
}

if c.logger != nil {
// Truncate the error log if this is a reload.
c.logger.Reset()
}

cfg := c.DepsCfg
c.configured = false
cfg.Running = running
Expand Down

0 comments on commit 1e9ac3d

Please sign in to comment.