aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMickael Remond <mremond@process-one.net>2016-03-29 11:21:53 +0200
committerMickael Remond <mremond@process-one.net>2016-03-29 11:21:53 +0200
commit53d12caa56dfec564938bd59c34540960b9430b5 (patch)
treea263953d7eeb945a719390aa49d3e682c4a7badc
parentUse new fast_yaml (diff)
Fix log printout
Log is not only called for admin commands. It is call for all commands call.
-rw-r--r--src/mod_http_api.erl6
1 files changed, 3 insertions, 3 deletions
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;