23 lines
585 B
Python
Raw Normal View History

2026-01-21 18:59:54 +08:00
# SPDX-License-Identifier: GPL-2.0
#
# Sphinx has deprecated its older logging interface, but the replacement
# only goes back to 1.6. So here's a wrapper layer to keep around for
# as long as we support 1.4.
#
2026-01-29 22:25:33 +08:00
# We don't support 1.4 anymore, but we'll keep the wrappers around until
# we change all the code to not use them anymore :)
#
2026-01-21 18:59:54 +08:00
import sphinx
2026-01-29 22:25:33 +08:00
from sphinx.util import logging
2026-01-21 18:59:54 +08:00
2026-01-29 22:25:33 +08:00
logger = logging.getLogger('kerneldoc')
2026-01-21 18:59:54 +08:00
def warn(app, message):
2026-01-29 22:25:33 +08:00
logger.warning(message)
2026-01-21 18:59:54 +08:00
def verbose(app, message):
2026-01-29 22:25:33 +08:00
logger.verbose(message)
2026-01-21 18:59:54 +08:00
def info(app, message):
2026-01-29 22:25:33 +08:00
logger.info(message)