docs: def debug_generate(self, debug_generator, *gen_args, **gen_kwargs):
          '''
          Used for efficient debug logging, where the actual message isn't evaluated unless it
          will actually be accepted by the logger.
          '''
          if self.isEnabledFor(logging.DEBUG):
              message = debug_generator(*gen_args, **gen_kwargs)
              # Allow for content filtering to skip logging
              if message is not None:
                  return self.debug(message)