Skip to content

Commit 1e77e7c

Browse files
authored
Merge pull request xapi-project#3169 from kc284/1.14-ppx
CA-263064: Stop logging the body of jsonrpc requests.
2 parents a76d340 + 439df25 commit 1e77e7c

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

ocaml/xapi/api_server.ml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,11 +192,8 @@ let callback is_json req bio _ =
192192
let jsoncallback req bio _ =
193193
let fd = Buf_io.fd_of bio in (* fd only used for writing *)
194194
let body = Http_svr.read_body ~limit:Xapi_globs.http_limit_max_rpc_size req bio in
195-
debug "Here in jsoncallback";
196195
try
197-
debug "Got the jsonrpc body: %s" body;
198196
let rpc = Jsonrpc.call_of_string body in
199-
debug "Got the jsonrpc body: %s" body;
200197
let response = Jsonrpc.a_of_response
201198
~empty:Bigbuffer.make
202199
~append:(fun buf s -> Bigbuffer.append_substring buf s 0 (String.length s))

0 commit comments

Comments
 (0)