ref: 1e9ac3dcc21e8f78d3f0a0ba4f35f6c142dfa6bc
parent: 40e99672b6f697a614485aace07ca84268f6c787
author: Bjørn Erik Pedersen <[email protected]>
date: Fri Oct 26 13:02:53 EDT 2018
commands: Truncate the error log on repeated config errors
--- a/commands/commandeer.go
+++ b/commands/commandeer.go
@@ -227,6 +227,11 @@
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