]> granicus.if.org Git - ejabberd/commitdiff
Fix log printout
authorMickael Remond <mremond@process-one.net>
Tue, 29 Mar 2016 09:21:53 +0000 (11:21 +0200)
committerMickael Remond <mremond@process-one.net>
Tue, 29 Mar 2016 09:21:53 +0000 (11:21 +0200)
Log is not only called for admin commands. It is call for all commands call.

src/mod_http_api.erl

index 3b7a09cb78a3f31ecc7ac85bc23cd294affc1e45..f46860a56b623ba526fe674b7bebbdabe44fda17 100644 (file)
@@ -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;