Format code
This commit is contained in:
parent
e3d414089f
commit
081f5dbe6e
|
@ -482,9 +482,9 @@ listeners(["restart", Proto, ListenOn]) ->
|
||||||
end,
|
end,
|
||||||
case emqttd_app:restart_listener({list_to_atom(Proto), ListenOn1, []}) of
|
case emqttd_app:restart_listener({list_to_atom(Proto), ListenOn1, []}) of
|
||||||
{ok, _Pid} ->
|
{ok, _Pid} ->
|
||||||
io:format("Restart ~s listen on ~s successfully.~n", [Proto, ListenOn]);
|
io:format("Restart ~s listener on ~s successfully.~n", [Proto, ListenOn]);
|
||||||
{error, Error} ->
|
{error, Error} ->
|
||||||
io:format("Failed to restart ~s listen on ~s, error:~p~n", [Proto, ListenOn, Error])
|
io:format("Failed to restart ~s listener on ~s, error:~p~n", [Proto, ListenOn, Error])
|
||||||
end;
|
end;
|
||||||
|
|
||||||
listeners(["stop", Proto, ListenOn]) ->
|
listeners(["stop", Proto, ListenOn]) ->
|
||||||
|
@ -494,9 +494,9 @@ listeners(["stop", Proto, ListenOn]) ->
|
||||||
end,
|
end,
|
||||||
case emqttd_app:stop_listener({list_to_atom(Proto), ListenOn1, []}) of
|
case emqttd_app:stop_listener({list_to_atom(Proto), ListenOn1, []}) of
|
||||||
ok ->
|
ok ->
|
||||||
io:format("Stop ~s on ~s successfully.~n", [Proto, ListenOn]);
|
io:format("Stop ~s listener on ~s successfully.~n", [Proto, ListenOn]);
|
||||||
{error, Error} ->
|
{error, Error} ->
|
||||||
io:format("Failed to stop ~s on ~s, error:~p~n", [Proto, ListenOn, Error])
|
io:format("Failed to stop ~s listener on ~s, error:~p~n", [Proto, ListenOn, Error])
|
||||||
end;
|
end;
|
||||||
|
|
||||||
listeners(_) ->
|
listeners(_) ->
|
||||||
|
|
Loading…
Reference in New Issue