Commit 9d25b3e
committed
Downgrade load_yaml_file log messages to debug
Callers already log at their own preferred level (error or warning)
when load_yaml_file returns None. Having load_yaml_file also log at
error produced double logging for the same failure.
Downgrade the messages in load_yaml_file to debug so that callers
remain in control of the log level. This matters because not all
callers treat a failure the same way: get_cloud_password has a
fallback to secure.yml, so a missing secrets.yml is not an error
there.
An alternative would be to raise specific exceptions from
load_yaml_file instead of returning None so that callers can
distinguish file-not-found, decryption errors, and YAML parse
errors. That would require a larger refactoring of all call sites.
AI-assisted: Claude Code
Signed-off-by: Roger Luethi <luethi@osism.tech>1 parent 3ce26f7 commit 9d25b3e
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
| 113 | + | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| |||
0 commit comments