Commit 30ad0c66 authored by Markus Heiser's avatar Markus Heiser

duckduckgo_definitions: remove the debug message

Signed-off-by: 's avatarMarkus Heiser <markus.heiser@darmarit.de>
parent b6d9f5aa
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment