Skip to content

Commit

Permalink
Change message severity to info for clean terminate
Browse files Browse the repository at this point in the history
  • Loading branch information
GlenWalker committed Mar 9, 2018
1 parent 7af957d commit cfa9378
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/erlzk_conn.erl
Original file line number Diff line number Diff line change
Expand Up @@ -339,12 +339,12 @@ handle_info(_Info, State=#state{ping_interval=PingIntv}) ->
terminate(normal, #state{socket=Socket, heartbeat_watcher=HeartbeatWatcher}) ->
stop_heartbeat(HeartbeatWatcher),
close_connection(Socket),
error_logger:warning_msg("Server is closed~n"),
error_logger:info_msg("Server is closed~n"),
ok;
terminate(shutdown, #state{socket=Socket, heartbeat_watcher=HeartbeatWatcher}) ->
stop_heartbeat(HeartbeatWatcher),
close_connection(Socket),
error_logger:warning_msg("Server is shutdown~n"),
error_logger:info_msg("Server is shutdown~n"),
ok;
terminate(Reason, #state{socket=Socket, heartbeat_watcher=HeartbeatWatcher}) ->
error_logger:error_msg("Connection terminating with reason: ~p~n", [Reason]),
Expand Down

0 comments on commit cfa9378

Please sign in to comment.