diff --git a/src/hz_man.erl b/src/hz_man.erl index 20307ef..1c87fe2 100644 --- a/src/hz_man.erl +++ b/src/hz_man.erl @@ -77,7 +77,7 @@ chain_nodes() -> -spec chain_nodes(ToUse) -> ok - when ToUse :: [hz:chain_nodes()]. + when ToUse :: [hz:chain_node()]. chain_nodes(ToUse) -> gen_server:cast(?MODULE, {chain_nodes, ToUse}). @@ -164,7 +164,7 @@ handle_cast({tls, Boolean}, State) -> NewState = do_tls(Boolean, State), {noreply, NewState}; handle_cast({chain_nodes, []}, State) -> - {noreply, State#s{chain_nodes = none}}; + {noreply, State#s{chain_nodes = {[], []}}}; handle_cast({chain_nodes, ToUse}, State) -> {noreply, State#s{chain_nodes = {ToUse, []}}}; handle_cast({timeout, Value}, State) -> @@ -178,7 +178,7 @@ handle_info({'DOWN', Mon, process, PID, Info}, State) -> NewState = handle_down(PID, Mon, Info, State), {noreply, NewState}; handle_info(Unexpected, State) -> - ok = log("Unexpected info: ~tp~n", [Unexpected]), + ok = log(warning, "Unexpected info: ~tp~n", [Unexpected]), {noreply, State}.