Skip to content

Commit 8a1c3d9

Browse files
committed
fix broken log print in console
1 parent 6ce4f96 commit 8a1c3d9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

sphinx/builders/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -558,8 +558,10 @@ def write(
558558
with progress_message(__('preparing documents')):
559559
self.prepare_writing(docnames)
560560

561-
with progress_message(__('copying assets')):
562-
self.copy_assets()
561+
# we can not use progress_message() because self.copy_assets() will
562+
# print some log lines.
563+
logger.info(bold(__('copying assets') + "..."))
564+
self.copy_assets()
563565

564566
if self.parallel_ok:
565567
# number of subprocesses is parallel-1 because the main process

0 commit comments

Comments
 (0)