You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my view, juju actions are the public facade of the charm. The user-facing API.
A user doesn't necessarily want to see things such as internal deprecation warnings or other logs as part of the action output, or they might think something went wrong when running the action.
I'm not sure if this is a juju or an ops concern, but this user experience should be improved:
What do you think is the way forward on this? Silence all stdout when running an action? This warning will show up in the juju debug-log anyway, which is the only place I'd expect to see it.
The text was updated successfully, but these errors were encountered:
Yeah, I agree these shouldn't end up in the actions output. Hopefully there's a straight-forward way to make these warnings only go to the debug log. We'll aim to look into this at some point soon.
And when running the action, I don't get the warning. It is being produced: if I put PYTHONWARNINGS="error::DeprecationWarning" into the dispatch script then I correctly get an error.
@PietroPasotti would any of the code be setting PYTHONWARNINGS or running the script with a -W argument or calling warnings.filterwarnings?
It seems like the correct fix is to to set the filters appropriately, but that's not going to help if something is changing them. If that isn't going to work, then we might have to use a custom showwarning that redirects to logging/debug-log rather than relying on stderr output (as we investigated and rejected previously).
In my view,
juju actions
are the public facade of the charm. The user-facing API.A user doesn't necessarily want to see things such as internal deprecation warnings or other logs as part of the action output, or they might think something went wrong when running the action.
I'm not sure if this is a juju or an ops concern, but this user experience should be improved:
What do you think is the way forward on this? Silence all stdout when running an action? This warning will show up in the juju debug-log anyway, which is the only place I'd expect to see it.
The text was updated successfully, but these errors were encountered: