mirror of
https://github.com/processone/ejabberd.git
synced 2024-06-02 21:17:12 +02: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
|
||||||
|
@ -114,7 +118,7 @@
|
||||||
automatically (EJAB-407)
|
automatically (EJAB-407)
|
||||||
|
|
||||||
* src/mod_roster.erl: Likewise
|
* src/mod_roster.erl: Likewise
|
||||||
|
|
||||||
* src/mod_muc/mod_muc_log.erl: Fix XHTML compliance: ensure some
|
* src/mod_muc/mod_muc_log.erl: Fix XHTML compliance: ensure some
|
||||||
language is set, include ID attribute in each message, add
|
language is set, include ID attribute in each message, add
|
||||||
microseconds to ensure unique value (EJAB-497)
|
microseconds to ensure unique value (EJAB-497)
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
%%% but WITHOUT ANY WARRANTY; without even the implied warranty of
|
%%% but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
%%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
%%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
%%% General Public License for more details.
|
%%% General Public License for more details.
|
||||||
%%%
|
%%%
|
||||||
%%% You should have received a copy of the GNU General Public License
|
%%% You should have received a copy of the GNU General Public License
|
||||||
%%% along with this program; if not, write to the Free Software
|
%%% along with this program; if not, write to the Free Software
|
||||||
%%% Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
%%% Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
@ -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;
|
||||||
|
@ -158,7 +161,7 @@ process(["load", Path]) ->
|
||||||
end;
|
end;
|
||||||
|
|
||||||
process(["restore", Path]) ->
|
process(["restore", Path]) ->
|
||||||
case ejabberd_admin:restore(Path) of
|
case ejabberd_admin:restore(Path) of
|
||||||
{atomic, _} ->
|
{atomic, _} ->
|
||||||
?STATUS_SUCCESS;
|
?STATUS_SUCCESS;
|
||||||
{error, Reason} ->
|
{error, Reason} ->
|
||||||
|
@ -384,7 +387,7 @@ dump_to_textfile(yes, {ok, F}) ->
|
||||||
end, Tabs1),
|
end, Tabs1),
|
||||||
Defs = lists:map(
|
Defs = lists:map(
|
||||||
fun(T) -> {T, [{record_name, mnesia:table_info(T, record_name)},
|
fun(T) -> {T, [{record_name, mnesia:table_info(T, record_name)},
|
||||||
{attributes, mnesia:table_info(T, attributes)}]}
|
{attributes, mnesia:table_info(T, attributes)}]}
|
||||||
end,
|
end,
|
||||||
Tabs),
|
Tabs),
|
||||||
io:format(F, "~p.~n", [{tables, Defs}]),
|
io:format(F, "~p.~n", [{tables, Defs}]),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user