Commit | Line | Data |
---|---|---|
096ea522 JC |
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 | # | |
f546ff0c JC |
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 | # | |
096ea522 | 10 | import sphinx |
f546ff0c | 11 | from sphinx.util import logging |
096ea522 | 12 | |
f546ff0c | 13 | logger = logging.getLogger('kerneldoc') |
096ea522 JC |
14 | |
15 | def warn(app, message): | |
f546ff0c | 16 | logger.warning(message) |
096ea522 JC |
17 | |
18 | def verbose(app, message): | |
f546ff0c | 19 | logger.verbose(message) |
096ea522 | 20 | |
678a63f9 | 21 | def info(app, message): |
f546ff0c | 22 | logger.info(message) |