Skip to content

Commit 086a770

Browse files
committed
up
1 parent 91c73bb commit 086a770

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/diffusers/utils/logging.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@
5454

5555
class _RankZeroFilter(logging.Filter):
5656
def filter(self, record):
57-
return is_torch_dist_rank_zero()
57+
# Always allow rank-zero logs, but keep debug-level messages from all ranks for troubleshooting.
58+
return is_torch_dist_rank_zero() or record.levelno <= logging.DEBUG
5859

5960

6061
def _ensure_rank_zero_filter(logger: logging.Logger) -> None:

0 commit comments

Comments
 (0)