summaryrefslogtreecommitdiff
path: root/searx/shared
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2022-05-27 18:43:14 +0200
committerMarkus Heiser <markus.heiser@darmarit.de>2022-07-30 13:39:35 +0200
commit782f73540e2d383ea122716507ccd9582918ab51 (patch)
tree2cca6c47e63cdf383883a2a47ac8329e629bb40d /searx/shared
parent81bba4486916dbca4467a7e8c8b839a7c55c2a09 (diff)
downloadsearxng-782f73540e2d383ea122716507ccd9582918ab51.tar.gz
searxng-782f73540e2d383ea122716507ccd9582918ab51.zip
[utils/searxng.sh] implement new script to install SearXNG
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/shared')
-rw-r--r--searx/shared/redisdb.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/searx/shared/redisdb.py b/searx/shared/redisdb.py
index da71d169c..bb7a0eeb4 100644
--- a/searx/shared/redisdb.py
+++ b/searx/shared/redisdb.py
@@ -19,10 +19,13 @@ A redis DB connect can be tested by::
"""
+import os
+import pwd
import logging
import redis
from searx import get_setting
+
logger = logging.getLogger('searx.shared.redis')
_client = None
@@ -42,6 +45,7 @@ def init():
logger.info("connected redis DB --> %s", c.acl_whoami())
return True
except redis.exceptions.ConnectionError as exc:
- logger.error("can't connet redis DB ...")
+ _pw = pwd.getpwuid(os.getuid())
+ logger.error("[%s (%s)] can't connect redis DB ...", _pw.pw_name, _pw.pw_uid)
logger.error(" %s", exc)
return False