unbit / uwsgi

uWSGI application server container
http://projects.unbit.it/uwsgi
Other
3.45k stars 688 forks source link

How do I silence the startup messages outputed by UWSGI? #2591

Open nicksspirit opened 9 months ago

nicksspirit commented 9 months ago

I am using uwsgi with my django application and when the uwsgi server is starting up it outputs the bellow message.

*** Starting uWSGI 2.0.21 (64bit) on [Mon Dec 18 15:52:00 2023] ***
compiled with version: 10.2.1 20210130 (Red Hat 10.2.1-11) on 28 October 2022 14:09:13
os: Linux-6.4.16-linuxkit #1 SMP PREEMPT Thu Nov 16 10:49:20 UTC 2023
nodename: 5ac0b6e59e91
machine: x86_64
clock source: unix
pcre jit disabled
detected number of CPU cores: 8
current working directory: /code
detected binary path: /usr/local/bin/python3.10
chdir() to /code
your memory page size is 4096 bytes
detected max file descriptor number: 1048576
lock engine: pthread robust mutexes
thunder lock: enabled
uWSGI http bound on 0.0.0.0:8000 fd 8
uwsgi socket 0 bound to UNIX address /var/www/app/uwsgi_socket/app.sock fd 11
Python version: 3.10.8 (main, Dec  6 2022, 14:24:03) [GCC 10.2.1 20210110]
--- Python VM already initialized ---
Python main interpreter initialized at 0x5555555764c0
python threads support enabled
your server socket listen backlog is limited to 1024 connections
your mercy for graceful operations on workers is 60 seconds
mapped 855210 bytes (835 KB) for 5 cores
*** Operational MODE: preforking ***
WSGI app 0 (mountpoint='') ready in 3 seconds on interpreter 0x5555555764c0 pid: 1 (default app)
spawned uWSGI master process (pid: 1)
spawned uWSGI worker 1 (pid: 32, cores: 1)
spawned uWSGI worker 2 (pid: 33, cores: 1)
spawned uWSGI worker 3 (pid: 34, cores: 1)
spawned uWSGI worker 4 (pid: 35, cores: 1)
spawned uWSGI worker 5 (pid: 36, cores: 1)
spawned uWSGI http 1 (pid: 37)
subprocess 20 exited with code 0
subprocess 23 exited with code 0
subprocess 27 exited with code 0
subprocess 28 exited with code 0

How can I silence these messages? Is there an environment variable one can use to make uwsgi a bit more quiet when starting up.

Lexicality commented 3 months ago

I would also appreciate this as it's flooding my logs