1
0
mirror of https://github.com/rancher/os.git synced 2025-06-27 15:26:50 +00:00

Add some debug logging

This commit is contained in:
Darren Shepherd 2015-02-14 09:34:11 -07:00
parent 1a720a85ec
commit a3be33c19d

View File

@ -266,9 +266,19 @@ func RunInit() error {
},
func(cfg *config.Config) error {
newCfg, err := config.LoadConfig()
if err == nil {
if newCfg.Debug {
newCfg, err = config.LoadConfig()
}
}
if err == nil {
*cfg = *newCfg
}
if cfg.Debug {
log.Debugf("Config: %s", cfg.Dump())
}
return err
},
createSymlinks,