summaryrefslogtreecommitdiff
path: root/searx/search
diff options
context:
space:
mode:
authorBnyro <bnyro@tutanota.com>2026-08-06 14:47:42 +0200
committerBnyro <bnyro@tutanota.com>2026-08-06 17:43:17 +0200
commitb023a28bab8839dba9eac96e9a51cc91bbd0a267 (patch)
treed2dc5354fe2281abd59f6734851bd586e6806631 /searx/search
parentc63835bd2a5133b30b3752a20eac6b443a918f41 (diff)
[fix] engines: only print search traceback in debug mode
Diffstat (limited to 'searx/search')
-rw-r--r--searx/search/processors/online.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/searx/search/processors/online.py b/searx/search/processors/online.py
index bea885331..7d7b5f34b 100644
--- a/searx/search/processors/online.py
+++ b/searx/search/processors/online.py
@@ -255,11 +255,11 @@ class OnlineProcessor(EngineProcessor):
except ssl.SSLError as e:
# requests timeout (connect or read)
self.handle_exception(result_container, e, suspend=True)
- self.logger.error("SSLError {}, verify={}".format(e, searx.network.get_network(self.engine.name).verify))
+ self.logger.debug("SSLError {}, verify={}".format(e, searx.network.get_network(self.engine.name).verify))
except (httpx.TimeoutException, asyncio.TimeoutError) as e:
# requests timeout (connect or read)
self.handle_exception(result_container, e, suspend=True)
- self.logger.error(
+ self.logger.debug(
"HTTP requests timeout (search duration : {0} s, timeout: {1} s) : {2}".format(
default_timer() - start_time, timeout_limit, e.__class__.__name__
)
@@ -267,7 +267,7 @@ class OnlineProcessor(EngineProcessor):
except (httpx.HTTPError, httpx.StreamError) as e:
# other requests exception
self.handle_exception(result_container, e, suspend=True)
- self.logger.exception(
+ self.logger.debug(
"requests exception (search duration : {0} s, timeout: {1} s) : {2}".format(
default_timer() - start_time, timeout_limit, e
)
@@ -278,7 +278,7 @@ class OnlineProcessor(EngineProcessor):
SearxEngineAccessDeniedException,
) as e:
self.handle_exception(result_container, e, suspend=True)
- self.logger.exception(e.message)
+ self.logger.debug(e.message)
except Exception as e: # pylint: disable=broad-except
self.handle_exception(result_container, e)
- self.logger.exception("exception : {0}".format(e))
+ self.logger.debug("exception : {0}".format(e))