标签: python-3.x uwsgi
我的uwsgi配置如下:
[uwsgi] pidfile=/tmp/uwsgimaster.pid processes=2 threads=4 enable-threads=true log-master=true
在我的python脚本中,我可以使用 uwsgi.masterpid()
但是,每当我调用log.info时,我都想标识进程和线程。
如何实现?