abra recipe upgrade -m
can't be parsed as JSON
#477
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@cas's suggestion (and I agree) is to have that (and any other) INFO warnings JSON-formatted, but sent to STDERR instead of STDOUT so they can easily be handled separately by scripts
@3wordchant @cas nice yeh, thx for reporting. I faced this elsewhere. My solution was to send this output to
DEBUG
level instead (only appears with you--debug
). It's a lazier option but is much easier to implement. What do you think?Hmmm on second thoughts, that might break expectations on the non-machine output. I could potentially conditionally not output if we see
--machine
but that be feels a bit weird. But equally as weird as putting someINFO
intostderr
for specific commands? Perhaps logging should be disabled for--machine
output? I'm not sure.Could we log to stderr only when --machine is provided?