[pve-devel] applied: [PATCH manager] fix #4333: redirect API handler output to STDERR

Thomas Lamprecht t.lamprecht at proxmox.com
Sat Mar 11 18:10:24 CET 2023


Am 08/03/2023 um 12:47 schrieb Fabian Grünbichler:
> otherwise, print/warn statements by the API endpoint are included in the
> output, which breaks JSON parsing in case of output-format == json*.
> 
> Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
> ---
> 
> Notes:
>     technically a change that might require adapting some scripted calls, although
>     we don't give any guarantees about pvesh output (or task log contents/stdout
>     output of endpoints) I think ;)
>     
>     Suggested-by: reitermarkus (Proxmox Community Forum user)
> 
>  PVE/CLI/pvesh.pm | 8 +++++++-
>  1 file changed, 7 insertions(+), 1 deletion(-)
> 
>

applied, thanks!





More information about the pve-devel mailing list