From 4cf68c2f9faa6d16a3102c5af106d4867f62386a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20R=C3=A9mond?= Date: Sat, 15 Mar 2008 10:57:38 +0000 Subject: [PATCH] * src/ejabberd_ctl.erl: API improvement: Added reopen_log_hook (EJAB-565) SVN Revision: 1234 --- ChangeLog | 3 +++ src/ejabberd_ctl.erl | 2 ++ 2 files changed, 5 insertions(+) diff --git a/ChangeLog b/ChangeLog index 264c32133..58a67788a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2008-03-15 Mickael Remond + * src/ejabberd_ctl.erl: API improvement: Added + reopen_log_hook (EJAB-565) + * src/ejabberd_s2s.erl: API improvement: Added s2s_connect_hook (EJAB-566). diff --git a/src/ejabberd_ctl.erl b/src/ejabberd_ctl.erl index df882d50f..cfeb2a30d 100644 --- a/src/ejabberd_ctl.erl +++ b/src/ejabberd_ctl.erl @@ -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;