Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 628299b

Browse files
committed
Debug edit
1 parent a148ac7 commit 628299b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sphinx_automodapi/automodsumm.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,14 +268,16 @@ def process_automodsumm_generation(app):
268268
f.write(l)
269269
f.write('\n')
270270

271+
logger = logging.getLogger(__name__)
271272
for sfn, lines in zip(filestosearch, liness):
272273
suffix = os.path.splitext(sfn)[1]
273274
if len(lines) > 0:
274275
new_files = generate_automodsumm_docs(
275276
lines, sfn, app=app, builder=app.builder,
276277
suffix=suffix, base_path=app.srcdir,
277278
inherited_members=app.config.automodsumm_inherited_members)
278-
print('NEW FILES!', new_files)
279+
logger.info('New files: ' + ', '.join(os.path.basenam(file)
280+
for file in new_files))
279281
for f in new_files:
280282
env.found_docs.add(env.path2doc(f))
281283

0 commit comments

Comments
 (0)