25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-22 17:28:25 +01:00

* src/ejabberd_config.erl: Added loglevel option. It is now possible to

configure ejabberd dynamic loglevel from the config file (EJAB-74).

SVN Revision: 693
This commit is contained in:
Mickaël Rémond 2006-12-14 18:54:50 +00:00
parent 2bc550aafc
commit 4f0ee52254
3 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2006-12-14 Mickael Remond <mickael.remond@process-one.net>
* src/ejabberd_config.erl: Added loglevel option. It is now possible to
configure ejabberd dynamic loglevel from the config file.
2006-12-08 Alexey Shchepin <alexey@sevcom.net> 2006-12-08 Alexey Shchepin <alexey@sevcom.net>
* src/ejabberd_receiver.erl: Bugfix * src/ejabberd_receiver.erl: Bugfix

View File

@ -1,8 +1,9 @@
% $Id$ % $Id$
% ejabberd loglevel (0: no log -> 5: debug))
{loglevel, 4}.
%override_acls. %override_acls.
% Users that have admin access. Add line like one of the following after you % Users that have admin access. Add line like one of the following after you
% will be successfully registered on server to get admin access: % will be successfully registered on server to get admin access:
%{acl, admin, {user, "aleksey"}}. %{acl, admin, {user, "aleksey"}}.

View File

@ -121,6 +121,9 @@ process_term(Term, State) ->
add_option(cluster_nodes, Nodes, State); add_option(cluster_nodes, Nodes, State);
{domain_balancing, Domain, Balancing} -> {domain_balancing, Domain, Balancing} ->
add_option({domain_balancing, Domain}, Balancing, State); add_option({domain_balancing, Domain}, Balancing, State);
{loglevel, Loglevel} ->
ejabberd_loglevel:set(Loglevel),
State;
{Opt, Val} -> {Opt, Val} ->
lists:foldl(fun(Host, S) -> process_host_term(Term, Host, S) end, lists:foldl(fun(Host, S) -> process_host_term(Term, Host, S) end,
State, State#state.hosts) State, State#state.hosts)