Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/processone/ejabberd.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMickael Remond <mremond@process-one.net>2016-03-29 12:21:53 +0300
committerMickael Remond <mremond@process-one.net>2016-03-29 12:21:53 +0300
commit53d12caa56dfec564938bd59c34540960b9430b5 (patch)
treea263953d7eeb945a719390aa49d3e682c4a7badc /src/mod_http_api.erl
parent54ddc990c27224c7a05822bbac2d616a973f2f15 (diff)
Fix log printout
Log is not only called for admin commands. It is call for all commands call.
Diffstat (limited to 'src/mod_http_api.erl')
-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;