remove unesscecary debug statement
Some checks failed
/ example-docker-compose (pull_request) Has been cancelled
checks / runner exec tests (pull_request) Has been cancelled
/ cascade (pull_request_target) Has been cancelled
checks / build and test (pull_request) Has been cancelled

The Debug code specifically just wrote an adjacent config file with what the env-overrides resulted in
This commit is contained in:
Merith-TK 2024-12-28 16:47:04 +00:00 committed by Merith-TK
parent a2ef006be8
commit 8fe93693db

View file

@ -173,15 +173,5 @@ func LoadDefault(file string) (*Config, error) {
// Load environment variables at the end to allow for overriding the default values. // Load environment variables at the end to allow for overriding the default values.
loadEnvVars(cfg) loadEnvVars(cfg)
// Write the state of the config, including default values, to a debug file.
debugFile := file + ".debug.yml"
content, err := yaml.Marshal(cfg)
if err != nil {
return nil, fmt.Errorf("marshal config to debug file %q: %w", debugFile, err)
}
if err := os.WriteFile(debugFile, content, 0644); err != nil {
return nil, fmt.Errorf("write debug config file %q: %w", debugFile, err)
}
return cfg, nil return cfg, nil
} }