8000 docs: conf.py: fix logging about reidrects · russbot/circuitpython@e40539c · GitHub
[go: up one dir, main page]

Skip to content

Commit e40539c

Browse files
committed
docs: conf.py: fix logging about reidrects
1 parent 56367b1 commit e40539c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,13 +391,13 @@
391391
def generate_redirects(app):
392392
path = os.path.join(app.srcdir, app.config.redirects_file)
393393
if not os.path.exists(path):
394-
logging.info("Could not find redirects file at '%s'" % path)
394+
logging.error("Could not find redirects file at '%s'" % path)
395395
return
396396

397-
logging.warn(f"Builder is {app.builder.name} ({type(app.builder)})")
398397
if not isinstance(app.builder, builders.StandaloneHTMLBuilder):
399398
logging.warn("The 'sphinxcontib-redirects' plugin is only supported "
400399
"by the 'html' builder and subclasses. Skipping...")
400+
logging.warn(f"Builder is {app.builder.name} ({type(app.builder)})")
401401
return
402402

403403
with open(path) as redirects:

0 commit comments

Comments
 (0)
0