diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-10-26 17:02:53 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-10-26 17:02:53 +0200 |
commit | 1e9ac3dcc21e8f78d3f0a0ba4f35f6c142dfa6bc (patch) | |
tree | eab66033e94b392ca73bba408a86202f6e5b96cc /commands/commandeer.go | |
parent | 40e99672b6f697a614485aace07ca84268f6c787 (diff) |
commands: Truncate the error log on repeated config errors
Diffstat (limited to 'commands/commandeer.go')
-rw-r--r-- | commands/commandeer.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/commands/commandeer.go b/commands/commandeer.go index 3d4d0ff1b..545191cfe 100644 --- a/commands/commandeer.go +++ b/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 |