mirror of
https://github.com/searx/searx
synced 2024-11-30 14:10:13 +01:00
duckduckgo_definitions: remove the debug message
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
parent
b6d9f5aa71
commit
30ad0c666d
@ -12,14 +12,11 @@ DuckDuckGo (definitions)
|
||||
import json
|
||||
from lxml import html
|
||||
from re import compile
|
||||
import logging
|
||||
from searx.engines.xpath import extract_text
|
||||
from searx.engines.duckduckgo import _fetch_supported_languages, supported_languages_url, language_aliases
|
||||
from searx.url_utils import urlencode
|
||||
from searx.utils import html_to_text, match_language
|
||||
|
||||
logger = logging.getLogger('searx.engines.' + __name__)
|
||||
|
||||
url = 'https://api.duckduckgo.com/'\
|
||||
+ '?{query}&format=json&pretty=0&no_redirect=1&d=1'
|
||||
|
||||
@ -41,7 +38,6 @@ def request(query, params):
|
||||
language = match_language(params['language'], supported_languages, language_aliases)
|
||||
language = language.split('-')[0]
|
||||
params['headers']['Accept-Language'] = language
|
||||
logger.debug("query %s: // headers: %s", params['url'], params['headers'])
|
||||
return params
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user