diff --git a/nominatim/api/logging.py b/nominatim/api/logging.py index 6bf3ed38..a4da357d 100644 --- a/nominatim/api/logging.py +++ b/nominatim/api/logging.py @@ -196,7 +196,7 @@ class HTMLLogger(BaseLogger): def _python_var(self, var: Any) -> str: if CODE_HIGHLIGHT: - fmt = highlight(repr(var), PythonLexer(), HtmlFormatter(nowrap=True)) + fmt = highlight(str(var), PythonLexer(), HtmlFormatter(nowrap=True)) return f'
{fmt}{str(var)}'