From a19daee3538851317793d4d69a585f7d40e6a84c Mon Sep 17 00:00:00 2001 From: Feng Lee Date: Mon, 27 Aug 2018 16:19:58 +0800 Subject: [PATCH] Improve the print of listener startup --- src/emqx_listeners.erl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/emqx_listeners.erl b/src/emqx_listeners.erl index 16cd06b4f..421304f3a 100644 --- a/src/emqx_listeners.erl +++ b/src/emqx_listeners.erl @@ -33,9 +33,9 @@ start() -> start_listener({Proto, ListenOn, Options}) -> case start_listener(Proto, ListenOn, Options) of {ok, _} -> - io:format("Start mqtt:~s listener on ~s successfully~n", [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", + io:format(standard_error, "Failed to start mqtt:~s listener on ~s - ~p!", [Proto, format(ListenOn), Reason]) end. @@ -114,9 +114,9 @@ stop() -> stop_listener({Proto, ListenOn, Opts}) -> case stop_listener(Proto, ListenOn, Opts) of ok -> - io:format("Stop mqtt:~s listener on ~s successfully~n", [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", + io:format(standard_error, "Failed to stop mqtt:~s listener on ~s - ~p.", [Proto, format(ListenOn), Reason]) end.