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:
parent
1a720a85ec
commit
a3be33c19d
10
init/init.go
10
init/init.go
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user