diff options
author | Linus Nordberg <linus@nordu.net> | 2017-03-03 15:54:15 +0100 |
---|---|---|
committer | Linus Nordberg <linus@nordu.net> | 2017-03-03 15:54:15 +0100 |
commit | 3abe477fdc3a955bd5a8cadc1a746b027fe16248 (patch) | |
tree | 84f39dcabece25bef335f5571922013eded69e4a /src/plop_httputil.erl | |
parent | a6652b80f4281cfc7cbf78c008342e2fda36c715 (diff) |
Log the HTTP status code we return, debug level.
Diffstat (limited to 'src/plop_httputil.erl')
-rw-r--r-- | src/plop_httputil.erl | 4 |
1 files 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", |