commit: a61a96d975916da14cae28040dcaa527d8599b75
parent a04fafd419bd465c533cc223e4036e1ca0997d5f
Author: Adam Tauber <asciimoo@gmail.com>
Date: Thu, 15 Jan 2015 18:39:40 +0100
[enh] log highlighter errors
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git 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 = ''