def METHOD_NAME(self) -> None:
    """
    When backpressure is hit, DEBUG logs will be shed.
    """
    handler = RemoteHandler(
        "127.0.0.1", 9000, maximum_buffer=10, _reactor=self.reactor
    )
    logger = self.get_logger(handler)
    # Send some debug messages
    for i in range(0, 3):
        logger.debug("debug %s" % (i,))
    # Send a bunch of useful messages
    for i in range(0, 7):
        logger.info("info %s" % (i,))
    # The last debug message pushes it past the maximum buffer
    logger.debug("too much debug")
    # Allow the reconnection
    client, server = connect_logging_client(self.reactor, 0)
    client_transport = checked_cast(FakeTransport, client.transport)
    client_transport.flush()
    # Only the 7 infos made it through, the debugs were elided
    logs = server.data.splitlines()
    self.assertEqual(len(logs), 7)
    self.assertNotIn(b"debug", server.data)