25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

* src/ejabberd_ctl.erl: API improvement: Added reopen_log_hook (EJAB-565)

SVN Revision: 1234
This commit is contained in:
Mickaël Rémond 2008-03-15 10:57:38 +00:00
parent 295da9cf02
commit 4cf68c2f9f
2 changed files with 5 additions and 0 deletions

View File

@ -1,5 +1,8 @@
2008-03-15 Mickael Remond <mremond@process-one.net>
* src/ejabberd_ctl.erl: API improvement: Added
reopen_log_hook (EJAB-565)
* src/ejabberd_s2s.erl: API improvement: Added s2s_connect_hook
(EJAB-566).

View File

@ -97,6 +97,8 @@ process(["restart"]) ->
?STATUS_SUCCESS;
process(["reopen-log"]) ->
ejabberd_hooks:run(reopen_log_hook, []),
%% TODO: Use the Reopen log API for logger_h ?
ejabberd_logger_h:reopen_log(),
?STATUS_SUCCESS;