PHP log will not ignore repeated errors with ignore_repeated_errors = On

前端 未结 2 1627
执念已碎
执念已碎 2020-12-19 10:53

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 restar

2条回答
  •  天涯浪人
    2020-12-19 11:19

    Besides the ignore_repeated_errors, there is also the ignore_repeated_source ini settings. I think that one would work for you and should stop showing the same error repeatedly, when same file is called over and over.

    As PHP manual here says for it:

    ignore_repeated_source - Ignore source of message when ignoring repeated messages. When this setting is On you will not log errors with repeated messages from different files or sourcelines

提交回复
热议问题