From 9f5ad1c6468b24fa68dfc13428339f2d0e3a9136 Mon Sep 17 00:00:00 2001 From: anlicheng <244108715@qq.com> Date: Mon, 27 Apr 2026 16:08:20 +0800 Subject: [PATCH] add debug --- src/http_handler/http_protocol.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/http_handler/http_protocol.erl b/src/http_handler/http_protocol.erl index 231eb60..55b4aa5 100644 --- a/src/http_handler/http_protocol.erl +++ b/src/http_handler/http_protocol.erl @@ -21,8 +21,8 @@ init(Req0, Opts = [Mod|_]) -> try Mod:handle_request(Method, Path, GetParams, PostParams) of {ok, StatusCode, Resp} -> - %logger:debug("[http_protocol] request path: ~p, get_params: ~p, post_params: ~p, response: ~ts", - % [Path, GetParams, PostParams, Resp]), + logger:debug("[http_protocol] request path: ~p, get_params: ~p, post_params: ~p, response: ~ts", + [Path, GetParams, PostParams, Resp]), AcceptEncoding = cowboy_req:header(<<"accept-encoding">>, Req1, <<>>), Req2 = case iolist_size(Resp) >= 1024 andalso supported_gzip(AcceptEncoding) of true ->