Permalink
Browse files

commands: Truncate the error log on repeated config errors

  • Loading branch information...
bep committed Oct 26, 2018
1 parent 40e9967 commit 1e9ac3dcc21e8f78d3f0a0ba4f35f6c142dfa6bc
Showing with 5 additions and 0 deletions.
  1. +5 −0 commands/commandeer.go
@@ -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

0 comments on commit 1e9ac3d

Please sign in to comment.