162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0 262306a36Sopenharmony_ci# 362306a36Sopenharmony_ci# Sphinx has deprecated its older logging interface, but the replacement 462306a36Sopenharmony_ci# only goes back to 1.6. So here's a wrapper layer to keep around for 562306a36Sopenharmony_ci# as long as we support 1.4. 662306a36Sopenharmony_ci# 762306a36Sopenharmony_ci# We don't support 1.4 anymore, but we'll keep the wrappers around until 862306a36Sopenharmony_ci# we change all the code to not use them anymore :) 962306a36Sopenharmony_ci# 1062306a36Sopenharmony_ciimport sphinx 1162306a36Sopenharmony_cifrom sphinx.util import logging 1262306a36Sopenharmony_ci 1362306a36Sopenharmony_cilogger = logging.getLogger('kerneldoc') 1462306a36Sopenharmony_ci 1562306a36Sopenharmony_cidef warn(app, message): 1662306a36Sopenharmony_ci logger.warning(message) 1762306a36Sopenharmony_ci 1862306a36Sopenharmony_cidef verbose(app, message): 1962306a36Sopenharmony_ci logger.verbose(message) 2062306a36Sopenharmony_ci 2162306a36Sopenharmony_cidef info(app, message): 2262306a36Sopenharmony_ci logger.info(message) 23