Skip to content

SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.

[enh] log highlighter errors

Adam Taubera61a96d97591
diff --git a/searx/webapp.py b/searx/webapp.py
index 57551a655..cf58c55d9 100644
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -115,6 +115,7 @@ def code_highlighter(codelines, language=None):
lexer = get_lexer_by_name(language, stripall=True)
except:
# if lexer is not found, using default one
+ logger.debug('highlighter cannot find lexer for {0}'.format(language))
lexer = get_lexer_by_name('text', stripall=True)
html_code = ''