Skip to content

Commit

Permalink
Update loggers.py
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjsewell authored Aug 3, 2022
1 parent 143ff4e commit 5a44003
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion myst_nb/core/loggers.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ def process(self, msg, kwargs):
for keyword in self.KEYWORDS:
if keyword in kwargs:
kwargs["extra"][keyword] = kwargs.pop(keyword)
return f"{msg} [{self.extra['type']}{subtype}]", kwargs
etype = "" if not self.extra else self.extra.get("type", "")
return f"{msg} [{etype}{subtype}]", kwargs


class DocutilsLogHandler(logging.Handler):
Expand Down

0 comments on commit 5a44003

Please sign in to comment.