From a61a96d975916da14cae28040dcaa527d8599b75 Mon Sep 17 00:00:00 2001 From: Adam Tauber Date: Thu, 15 Jan 2015 18:39:40 +0100 Subject: [PATCH] [enh] log highlighter errors --- searx/webapp.py | 1 + 1 file changed, 1 insertion(+) 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 = ''