Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow opt out of json pretty print in enclave_process_handle_all_replies #544

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

emostov
Copy link

@emostov emostov commented Oct 9, 2023

Issue #, if available:

I did not find an issue for this, but I can create one if necessary. The only marginally related issue I saw is #483.

Description of changes:

Currently, all json is pretty printed. For ease of log ingestion/monitoring, this should be a single (unprettified) json line; specifically there should be no new line characters or superfluous indentation.

The change introduced here should not change api of the CLI itself, but instead just introduce the optionality to do non-pretty print for crate users. This change is done by adding a fifth boolean argument to enclave_process_handle_all_replies, which is used to indicate wether or not to pretty print the json. For crate users who want to maintain the status quo, they can simply set this argument to true.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@emostov emostov changed the title Do not print json with new line characters Allow opt out of json pretty print in enclave_process_handle_all_replies Oct 9, 2023
@clupuishere clupuishere force-pushed the print-json-without-newline-chars branch from 44a07c0 to 64e9da6 Compare January 23, 2024 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant