From 3abe477fdc3a955bd5a8cadc1a746b027fe16248 Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Fri, 3 Mar 2017 15:54:15 +0100 Subject: Log the HTTP status code we return, debug level. --- src/plop_httputil.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plop_httputil.erl b/src/plop_httputil.erl index e428297..67e48ba 100644 --- a/src/plop_httputil.erl +++ b/src/plop_httputil.erl @@ -105,8 +105,8 @@ request(DebugTag, URL, Headers, RequestBody, Method) -> {ok, Body} = hackney:body(ClientRef), Stoptime = os:timestamp(), hackney:close(ClientRef), - lager:debug("~s: received body for ~p: time ~p", - [DebugTag, URL, timer:now_diff(Stoptime, Starttime)]), + lager:debug("~s: received body for ~p: status ~p, time ~p", + [DebugTag, URL, StatusCode, timer:now_diff(Stoptime, Starttime)]), StatusLine = {none, StatusCode, none}, AuthHeader = get_auth_header(hackney_headers:new(RespHeaders)), {http_auth:verify_auth(AuthHeader, "REPLY", -- cgit v1.1