This one is particularly noisy when a font is missing, because it logs many warnings. And tools like sentry may not be able to properly group them because each message is a new and log message
LOGGER.warning(
'.notdef glyph rendered for Unicode string unsupported by fonts: '
f'"{chr(codepoint)}" (U+{codepoint:04X})')
It would be better to separate the static and dynamic parts like this:
LOGGER.warning(
'.notdef glyph rendered for Unicode string unsupported by fonts: %s',
f'"{chr(codepoint)}" (U+{codepoint:04X})')
That way any tool that acts on log records and not just the final stringified log message will know that it's all the same log message, just with different data.
This one is particularly noisy when a font is missing, because it logs many warnings. And tools like sentry may not be able to properly group them because each message is a new and log message
It would be better to separate the static and dynamic parts like this:
That way any tool that acts on log records and not just the final stringified log message will know that it's all the same log message, just with different data.