mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-16 20:53:59 +02:00
commands: Truncate the error log on repeated config errors
This commit is contained in:
@@ -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