kernellog.py 585 B

12345678910111213141516171819202122
  1. # SPDX-License-Identifier: GPL-2.0
  2. #
  3. # Sphinx has deprecated its older logging interface, but the replacement
  4. # only goes back to 1.6. So here's a wrapper layer to keep around for
  5. # as long as we support 1.4.
  6. #
  7. # We don't support 1.4 anymore, but we'll keep the wrappers around until
  8. # we change all the code to not use them anymore :)
  9. #
  10. import sphinx
  11. from sphinx.util import logging
  12. logger = logging.getLogger('kerneldoc')
  13. def warn(app, message):
  14. logger.warning(message)
  15. def verbose(app, message):
  16. logger.verbose(message)
  17. def info(app, message):
  18. logger.info(message)