anchor.diff:  log_error(State, throw, {cannot_verify_peer_op_identity, Reason}) ->
       ?warning("Discarding connections renewal to provider ~ts because "
                "its identity cannot be verified due to ~p. ~n"
  -             "Next retry not sooner than ~p s. ~n", [
  +             "Next retry not sooner than ~g s. ~n", [
           provider_logic:to_printable(State#state.peer_id),
           Reason,
           State#state.renewal_interval / 1000
  
positive.code:         {error, peer_offline} ->
              {stop, normal, State1}
      end;
  handle_info(Info, State) ->
      ?log_bad_request(Info),
      {noreply, State}.
  
negative.code:         {error, peer_offline} ->
              {stop, normal, State}
      end;
  
  handle_info({'EXIT', _ConnPid, timeout}, State) ->
      {stop, normal, State};
  
  handle_info({'EXIT', ConnPid, handshake_failed}, #state{
      connections = AllConnections,
      renewal_interval = Interval
  } = State) ->
      WorkingConnections = maps:remove(ConnPid, AllConnections),
      AfterLastConnectionRetry = Interval > ?MAX_RENEWAL_INTERVAL,
  
      case {map_size(WorkingConnections), AfterLastConnectionRetry} of
          {0, true} ->
              {stop, normal, State};
          _ ->
              NewState = State#state{connections = WorkingConnections},
              {noreply, schedule_next_renewal(NewState)}
      end;
  
  handle_info({'EXIT', ConnPid, _Reason}, #state{connections = Cons} = State0) ->
      State1 = State0#state{connections = maps:remove(ConnPid, Cons)},
      case renew_connections(State1) of
  