mirror of
https://github.com/processone/ejabberd
synced 2025-10-05 19:42:11 +02:00
Rewrite io:format calls to loglevel macros (EJAB-555)
SVN Revision: 1239
This commit is contained in:
parent
694baba127
commit
b2bd9759c8
14 changed files with 97 additions and 63 deletions
|
@ -30,6 +30,7 @@
|
|||
-export([start/2, stop/1, init/2,
|
||||
check_password/3, set_password/3, is_user_exists/2]).
|
||||
|
||||
-include("ejabberd.hrl").
|
||||
|
||||
start(Host, ExtPrg) ->
|
||||
spawn(?MODULE, init, [Host, ExtPrg]).
|
||||
|
@ -76,7 +77,7 @@ loop(Port) ->
|
|||
exit(normal)
|
||||
end;
|
||||
{'EXIT', Port, Reason} ->
|
||||
io:format("~p ~n", [Reason]),
|
||||
?CRITICAL_MSG("~p ~n", [Reason]),
|
||||
exit(port_terminated)
|
||||
end.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue