PHP日志将不会忽略带有ignore_repeated_errors = On的重复错误 [英] PHP log will not ignore repeated errors with ignore_repeated_errors = On

查看:206
本文介绍了PHP日志将不会忽略带有ignore_repeated_errors = On的重复错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尽管我已指示php仅记录一次错误-我在日志文件中一遍又一遍地看到错误.为什么会忽略此指令的任何想法?我已经重新启动apache等.

Although I have instructed php to only log an error once - i see the error over and over again in my log file. Any ideas why this directive would get ignored? I've restarted apache, etc.

推荐答案

此指令只会阻止在同一脚本运行中再次记录错误.多次运行同一个脚本时,每次仍然会看到该错误.

This directive will only stop the error from being logged again within the same script run. When the same script is run multiple times, you will still see that error every time.

这篇关于PHP日志将不会忽略带有ignore_repeated_errors = On的重复错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆