问题原文
原帖链接 · mpen · CC BY-SA 4.0
I keep seeing logs like these in my Kubernetes cluster:
[php] - - 05/Jul/2020:20:15:55 +0000 "POST /api/bookings" 200
How can I disable them?
If PHP wants to write an error or something, I want to keep that, it's just the request logs I don't care about (NGINX will log them a 2nd time anyway).
I'm using php:7.1-fpm
已采纳解答
原帖链接 · Doka · CC BY-SA 4.0
It depends on linux distributive, e.g. on CentOS you can find config file in derectory /etc/php-fpm.d and disable logging by editing several vars like access.log , php_admin_flag[log_errors], maybe more (depends of php version).
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
