mirror of
https://github.com/processone/ejabberd.git
synced 2025-01-03 18:02:28 +01:00
* src/ejabberd_ctl.erl: Call reopen_log_hook for each virtual host.
SVN Revision: 1461
This commit is contained in:
parent
1b7a36bf64
commit
999c81e79c
@ -1,3 +1,7 @@
|
|||||||
|
2008-07-03 Jerome Sautret <jerome.sautret@process-one.net>
|
||||||
|
|
||||||
|
* src/ejabberd_ctl.erl: Call reopen_log_hook for each virtual host.
|
||||||
|
|
||||||
2008-07-17 Badlop <badlop@process-one.net>
|
2008-07-17 Badlop <badlop@process-one.net>
|
||||||
|
|
||||||
* src/mod_muc/mod_muc_room.erl: Fix to allow a server admin to add
|
* src/mod_muc/mod_muc_room.erl: Fix to allow a server admin to add
|
||||||
|
@ -99,6 +99,9 @@ process(["restart"]) ->
|
|||||||
|
|
||||||
process(["reopen-log"]) ->
|
process(["reopen-log"]) ->
|
||||||
ejabberd_hooks:run(reopen_log_hook, []),
|
ejabberd_hooks:run(reopen_log_hook, []),
|
||||||
|
lists:foreach(fun(Host) ->
|
||||||
|
ejabberd_hooks:run(reopen_log_hook, Host, [Host])
|
||||||
|
end, ?MYHOSTS),
|
||||||
%% TODO: Use the Reopen log API for logger_h ?
|
%% TODO: Use the Reopen log API for logger_h ?
|
||||||
ejabberd_logger_h:reopen_log(),
|
ejabberd_logger_h:reopen_log(),
|
||||||
?STATUS_SUCCESS;
|
?STATUS_SUCCESS;
|
||||||
|
Loading…
Reference in New Issue
Block a user