1 # SPDX-License-Identifier: GPL-2.0
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.
9 if sphinx
.__version
__[:3] >= '1.6':
11 from sphinx
.util
import logging
12 logger
= logging
.getLogger('kerneldoc')
16 def warn(app
, message
):
18 logger
.warning(message
)
22 def verbose(app
, message
):
24 logger
.verbose(message
)