+5
−0
+22
−2
+1
−1
+55
−2
Loading
Print JSON RPC request and response objects into a specified log file and stderr via spdk_flog() and spdk_log(). To enable these logging, add two public APIs, spdk_jsonrpc_set_log_level() and spdk_jsonrpc_set_log_file(). Remove newlines of JSON objects to print it in a single line. We do this by default because newline does not affect the functionality of JSON RPC. Another idea is to pass file name and file mode (append, write, ...). However, SPDK is library. The application should manage log file. Hence, we receive file pointer. Signed-off-by:Shuhei Matsumoto <smatsumoto@nvidia.com> Change-Id: Ia385181f3922077670767d72bd070391dad75b1d Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/18829 Reviewed-by:
Jim Harris <jim.harris@gmail.com> Community-CI: Mellanox Build Bot Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Konrad Sztyber <konrad.sztyber@intel.com>