嗯,这个报错一般常见于Docker容器中使用了Supervisor守护服务。

之前的方法是把错误日志挂宿主机定时清理,并不科学,最近又碰到了,并且还造成懒得容器过大的问题。

搜索了解了下正确的姿势,配置中增加如下内容即可:

stdout_logfile=/dev/stdout
stderr_logfile=/dev/stderr
stdout_maxbytes=0
stderr_maxbytes=0
stdout_logfile_maxbytes = 0
stderr_logfile_maxbytes = 0

参考资料

Supervisor 3.3.1: CRIT uncaptured python exception, closing channel


如您从本文得到了有价值的信息或帮助,请考虑扫描文末二维码捐赠和鼓励。

尊重他人劳动成果。转载请务必附上原文链接,我将感激不尽。


与《Supervisor CRIT uncaptured python exception, closing channel 问题解决方案》相关的博文:


留言

avatar
😀
😀😁😂😅😭🤭😋😘🤔😰😱🤪💪👍👎🤝🌹👌