logger.info("hello", a="1 b=2") will be logged as hello1 a=1 b=2 and may cause some problem, maybe we should quote value when it contain any space
for example:
class _ConsoleRender(structlog.dev.ConsoleRenderer):
def _repr(self, val: Any) -> str:
v = str(val)
if " " in v or '\n' in v:
return repr(v)
return v
or just return repr(val)