You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Although SearXNG documents using uWSGI, I am using Gunicorn because it works better for me.
In SearXNG settings.yml file, there is an option (debug: true|false) to set debug log.
When it is not set, both Gunicorn and uWSGI receive INFO logs from SearXNG.
But when I set debug to true, only uWSGI gets DEBUG logs. I can't find how to get them using Gunicorn.
On uWSGI, those logs look like:
DEBUG searx.webapp : set locale fr (from browser)
WARNING searx.limiter : PASS 127.0.0.1/32: matched PASSLIST - IP matches 127.0.0.1/32 in botdetection.ip_lists.pass_ip.
I'm not a Dev so I'm not sure how logs are produced by SearXNG. But running a few grep commands I found an example in searx/webapp.py that goes like this:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
Although SearXNG documents using uWSGI, I am using Gunicorn because it works better for me.
In SearXNG
settings.yml
file, there is an option (debug: true|false) to set debug log.When it is not set, both Gunicorn and uWSGI receive INFO logs from SearXNG.
But when I set debug to true, only uWSGI gets DEBUG logs. I can't find how to get them using Gunicorn.
On uWSGI, those logs look like:
I'm not a Dev so I'm not sure how logs are produced by SearXNG. But running a few
grep
commands I found an example insearx/webapp.py
that goes like this:My Gunicorn configuration is:
I run it using:
~/pyenv/bin/gunicorn -D -c ~/searxng.conf.py -p ~/searxng.pid
Any ideas how to get the DEBUG logs into Gunicorn in this case?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions