Skip to content

Commit

Permalink
Revert logger print to io:format
Browse files Browse the repository at this point in the history
  • Loading branch information
terry-xiaoyu committed Nov 10, 2018
1 parent cca27d1 commit 2611b6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/emqx_listeners.erl
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ start() ->
start_listener({Proto, ListenOn, Options}) ->
case start_listener(Proto, ListenOn, Options) of
{ok, _} ->
logger:info("Start mqtt:~s listener on ~s successfully.", [Proto, format(ListenOn)]);
io:format("Start mqtt:~s listener on ~s successfully.~n", [Proto, format(ListenOn)]);
{error, Reason} ->
io:format(standard_error, "Failed to start mqtt:~s listener on ~s - ~p~n!",
[Proto, format(ListenOn), Reason])
Expand Down Expand Up @@ -117,7 +117,7 @@ stop() ->
stop_listener({Proto, ListenOn, Opts}) ->
case stop_listener(Proto, ListenOn, Opts) of
ok ->
logger:info("Stop mqtt:~s listener on ~s successfully.", [Proto, format(ListenOn)]);
io:format("Stop mqtt:~s listener on ~s successfully.~n", [Proto, format(ListenOn)]);
{error, Reason} ->
io:format(standard_error, "Failed to stop mqtt:~s listener on ~s - ~p~n.",
[Proto, format(ListenOn), Reason])
Expand Down

0 comments on commit 2611b6f

Please sign in to comment.