hook stderr not being logged during debug-code
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Confirmed
|
Low
|
Unassigned |
Bug Description
If my hook is completely broken, for example a Python script failing with an import error, then I can't see what is going wrong when running 'juju debug-code'. When the hook runs, if you are quick you can see a tmux window briefly flicker into existance and exit. If you are not perceptive there is no visual indication that the hook ran at all, let alone failed. The juju logs do state that the hook failed, but no traceback or other details as stderr is not captured.
I suggest that the tmux windows do not automatically close, or close after a timeout. The point of running debug-code is you want to interactively debug the code, and the fact that your breakpoint was not hit or the dispatch script completely failed is important information.
See things like: /unix.stackexch ange.com/ questions/ 17116/prevent- pane-window- from-closing- when-command- completes- tmux
https:/
There is a flag like 'remain-on-exit' though maybe we don't want to always remain on exit, but only remain if it would have exited too quickly.