<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _log_future_exception(future, logger):
 """Log any exception raised by future."""


    if not future.done():
        return

    try:
        future.result()
    except:  #pylint:disable=bare-except;This is a background logging helper
        logger.warning("Exception in ignored future: %s", future, exc_info=True)