wash
wash copied to clipboard
[REQ] Debug log if wash ctx fails to deserialize WashContext
Is your feature request related to a problem? Please describe. wash contexts are designed to make working with different wasmCloud clusters easy by allowing you to easily swap from one lattice configuration to another. In general, if wash fails to read a context file we fall back on reasonable defaults without warning the user as contexts are an optional feature.
Since rust logs are generally set to INFO by default, ctx can be enhanced with some debug logs in the case where a user is expecting a wash context to prefill variables. I see an obvious opportunity with this line, https://github.com/wasmCloud/wash/blob/main/src/ctx/mod.rs#L311, where we fail to deserialize a context from a context file. This should debug!()
log saying that we failed to deserialize the context.