diff options
author | Linus Nordberg <linus@nordu.net> | 2017-03-03 15:57:19 +0100 |
---|---|---|
committer | Linus Nordberg <linus@nordu.net> | 2017-03-03 15:57:19 +0100 |
commit | c3811a694e3c16836759ae6c05ded0af2a8b972b (patch) | |
tree | 475bdd046a17695a53cc2406f697d6f0c3de606a /src/http_auth.erl | |
parent | 10c96efeefa0d8f73089c342e358a626a3c11bf4 (diff) |
When checking an ACL, log full ACL only when failing.
Also, log the fact that we're failing, with path, at info level.
Diffstat (limited to 'src/http_auth.erl')
-rw-r--r-- | src/http_auth.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/http_auth.erl b/src/http_auth.erl index 276e1cd..2cee51f 100644 --- a/src/http_auth.erl +++ b/src/http_auth.erl @@ -69,7 +69,6 @@ check_acl(Method, KeyName, Path) -> allowed_clients end, ACL = plopconfig:get_env(EnvVarName, []), - lager:debug("ACL: ~p", [ACL]), case lists:keyfind(Path, 1, ACL) of {_, noauth} -> lager:debug("Anonymous access allowed"), @@ -83,7 +82,8 @@ check_acl(Method, KeyName, Path) -> failure end; false -> - lager:debug("No allowed keys found for: ~p", [Path]), + lager:debug("ACL: ~p", [ACL]), + lager:info("No allowed keys found for: ~p", [Path]), failure end. |