Commit f2d5237
committed
chore: log swallowed exceptions in _partial_resolve at debug level
_partial_resolve and _partial_resolve_find_in_map intentionally substitute
AWS::NoValue / partial args for false-condition resources when the
resolver raises. The swallow matches the Kotlin reference implementation
and is not changing.
The problem is debuggability: if a resolver bug or unexpected type slips
through, the swallow hides it and the user sees a template with
AWS::NoValue substitutions that look intentional. Adding LOG.debug with
exc_info=True surfaces the traceback under --debug and in telemetry
without changing any runtime behavior.
Three swallow sites covered:
- Ref substitution fallback
- Generic Fn::* substitution fallback
- Fn::FindInMap secondary fallback inside _partial_resolve_find_in_map
The Re-raised InvalidTemplateException branch in
_partial_resolve_find_in_map is unchanged — that path must error.1 parent fd0bedd commit f2d5237
1 file changed
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
234 | 239 | | |
235 | 240 | | |
236 | 241 | | |
237 | 242 | | |
238 | 243 | | |
239 | 244 | | |
240 | 245 | | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
241 | 251 | | |
242 | 252 | | |
243 | 253 | | |
| |||
310 | 320 | | |
311 | 321 | | |
312 | 322 | | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
313 | 329 | | |
314 | 330 | | |
315 | 331 | | |
| |||
0 commit comments