summaryrefslogtreecommitdiff
path: root/src/extauth.erl
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/extauth.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/extauth.erl b/src/extauth.erl
index b84546d4..052e95d7 100644
--- a/src/extauth.erl
+++ b/src/extauth.erl
@@ -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.