JSON output of several commands includes unexpected log entries #3099
Labels
A: question
Admin: further information is requested
I: CLI
Internal: related to the relayer's CLI
O: usability
Objective: cause to improve the user experience (UX) and ease using the product
Summary of Bug
When using the
--json
flag to get json output, additional log lines being displayed to stdout in addition to the expected result.When working on integrating hermes in to interchaintest, I used the json output to be more easily able to programatically interact with the hermes cli. However the json output does not produce a single json object, it outputs multiple distinct json objects which are not directly parsable without some additional pre-processing of the stdout. E.g.
which is a bit of a hack.
My expectation would be that just the final line is displayed to stdout
and the other ones would get appended to a log file.
This parsing needing to be done with outputs for several commands including querying channels, creating connections and creating clients.
Note: I did not encounter this issue in hermes v1.0.0
Version
v1.2.0+061f14f ( using docker container:
docker.io/informalsystems/hermes:v1.2.0
)Steps to Reproduce
Attempt to create a client, e.g.
hermes --json create client --host-chain cosmoshub-0 --reference-chain cosmoshub-1
Acceptance Criteria
raw stdout when using
--json
command is directly unmarshallable into an equivalent data structure.For Admin Use
The text was updated successfully, but these errors were encountered: