summaryrefslogtreecommitdiff
path: root/src/catlfish_web.erl
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2016-11-25 10:54:17 +0100
committerLinus Nordberg <linus@nordu.net>2016-11-25 10:54:17 +0100
commit9f436ce835aba793cc06525e160bd2e07dd8f7cd (patch)
tree4a6a0a74cd6b054b51a6ab8f1767caf820970d59 /src/catlfish_web.erl
parent034c40cc84f28fd970fc649ffe7eb7fe797479a6 (diff)
parentccfe7c55a5d1658c0f98aac2c45e76444dcd0bc2 (diff)
Merge remote-tracking branch 'refs/remotes/map/robust-distribution'
Diffstat (limited to 'src/catlfish_web.erl')
-rw-r--r--src/catlfish_web.erl8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/catlfish_web.erl b/src/catlfish_web.erl
index f44745d..12441cf 100644
--- a/src/catlfish_web.erl
+++ b/src/catlfish_web.erl
@@ -43,14 +43,16 @@ loop(Req, Module) ->
{403, [{"Content-Type", "text/plain"}],
"Invalid credentials"};
success ->
+ lager:info("GET ~p", [Path]),
lager:debug("GET ~p ~p", [Path, Query]),
add_auth(Path,
Module:request(get, App, Fun, Query));
noauth ->
+ lager:info("GET ~p", [Path]),
lager:debug("GET ~p ~p", [Path, Query]),
Module:request(get, App, Fun, Query)
end,
- lager:debug("GET finished: ~p us",
+ lager:info("GET finished: ~p us",
[timer:now_diff(os:timestamp(), Starttime)]),
case Result of
none ->
@@ -67,14 +69,16 @@ loop(Req, Module) ->
{403, [{"Content-Type", "text/plain"}],
"Invalid credentials"};
success ->
+ lager:info("POST ~p", [Path]),
lager:debug("POST ~p ~p", [Path, Body]),
add_auth(Path,
Module:request(post, App, Fun, Body));
noauth ->
+ lager:info("POST ~p", [Path]),
lager:debug("POST ~p ~p", [Path, Body]),
Module:request(post, App, Fun, Body)
end,
- lager:debug("POST finished: ~p us",
+ lager:info("POST finished: ~p us",
[timer:now_diff(os:timestamp(), Starttime)]),
case Result of
none ->