From 53d12caa56dfec564938bd59c34540960b9430b5 Mon Sep 17 00:00:00 2001 From: Mickael Remond Date: Tue, 29 Mar 2016 11:21:53 +0200 Subject: Fix log printout Log is not only called for admin commands. It is call for all commands call. --- src/mod_http_api.erl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mod_http_api.erl') diff --git a/src/mod_http_api.erl b/src/mod_http_api.erl index 3b7a09cb7..f46860a56 100644 --- a/src/mod_http_api.erl +++ b/src/mod_http_api.erl @@ -28,9 +28,9 @@ %% in ejabberd_http listener %% request_handlers: %% "/api": mod_http_api -%% +%% %% Access rights are defined with: -%% commands_admin_access: configure +%% commands_admin_access: configure %% commands: %% - add_commands: user %% @@ -385,7 +385,7 @@ json_response(Code, Body) when is_integer(Code) -> log(Call, Args, {Addr, Port}) -> AddrS = jlib:ip_to_list({Addr, Port}), - ?INFO_MSG("Admin call ~s ~p from ~s:~p", [Call, Args, AddrS, Port]). + ?INFO_MSG("API call ~s ~p from ~s:~p", [Call, Args, AddrS, Port]). mod_opt_type(access) -> fun(Access) when is_atom(Access) -> Access end; -- cgit v1.2.3