Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
jsonrpc_server: Remove newlines only if JSON RPC logging is enabled
We removed newlines by default when JSON RPC logging is supported because newlines do not affect the functionality of JSON RPC objects. However, this change lost backward compatibility of some custom applications which enabled SPDK_JSON_PARSE_FLAG_ALLOW_COMMENTS. JSON RPC logging is an optional feature. Hence, as a workaround we remove newlines only if JSON RPC logging is enabled. Fixes github issue spdk#3155 Signed-off-by: Shuhei Matsumoto <[email protected]> Change-Id: I3c7bd0b5b0fc27538c22b6fa10a67fd2a6e5895d Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/20505 Reviewed-by: Tomasz Zawadzki <[email protected]> Community-CI: Mellanox Build Bot Reviewed-by: Jim Harris <[email protected]> Tested-by: SPDK CI Jenkins <[email protected]>
- Loading branch information