code: private void logRunException(final Exception e) {
      if (shutDown) {
        getLogger().debug("Exception occurred during shutdown", e);
      } else {
        getLogger().warn("Problem handling memcached IO", e);
      }
    }
docs: Log a exception to different levels depending on the state.
  
  Exceptions get logged at debug level when happening during shutdown, but
  at warning level when operating normally.
  
  @param e the exception to log.