Skip to content

Commit e85cdea

Browse files
committed
Set the level of new logging handler, a feature that has been removed from traitlets>=5.2
1 parent 765d39d commit e85cdea

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

nbgrader/apps/baseapp.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ def init_logging(self,
9595
subapps: bool = False) -> None:
9696
handler = handler_class(*handler_args)
9797

98+
# Since traitlets >= 5.2 the log_level is not set for a new handler, and is set to '0'
99+
handler.setLevel(self.log_level)
100+
98101
if color:
99102
log_format = self.log_format
100103
else:

0 commit comments

Comments
 (0)