mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
commands: Truncate the error log on repeated config errors
This commit is contained in:
parent
40e99672b6
commit
1e9ac3dcc2
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue