def METHOD_NAME(self):
    """Make the collapsing log message handler flush more eagerly."""
    class EagerFlusher(logging.handlers.MemoryHandler):
        def __init__(self, *args, **kwargs):
            """Set the buffer capacity to 3 regardless of args."""
            # leave out any capacity argument from args and kwargs
            args = args[1:]
            kwargs = {k: v for k, v in list(kwargs.items()) if k != 'capacity'}
            # pass 3 as the capacity argument
            super(EagerFlusher, self).__init__(3, *args, **kwargs)
    class EagerFlushingCollapser(
            cbioportal_common.CollapsingLogMessageHandler,
            EagerFlusher):
        """CollapsingLogMessageHandler with EagerFlusher overrides."""
        pass
    self.original_collapser = cbioportal_common.CollapsingLogMessageHandler
    cbioportal_common.CollapsingLogMessageHandler = EagerFlusher