mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 14:17:43 +00:00
commands: Truncate the error log on repeated config errors
This commit is contained in:
1 file changed
+5
@@ -227,6 +227,11 @@ func (c *commandeer) loadConfig(mustHaveConfigFile, running bool) error {
|
|||||||
c.DepsCfg = &deps.DepsCfg{}
|
c.DepsCfg = &deps.DepsCfg{}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if c.logger != nil {
|
||||||
|
// Truncate the error log if this is a reload.
|
||||||
|
c.logger.Reset()
|
||||||
|
}
|
||||||
|
|
||||||
cfg := c.DepsCfg
|
cfg := c.DepsCfg
|
||||||
c.configured = false
|
c.configured = false
|
||||||
cfg.Running = running
|
cfg.Running = running
|
||||||
|
|||||||
Reference in new issue
Block a user