Welcome Guest, Not a member yet? Register   Sign In
How to disable logging for a specific library
#1

[eluser]Clooner[/eluser]
In my application I am using mpdf with a simple wrapper for CI written around it. However mpdf has lots of warnings, errors. I only use it for a small part of the website and I would like to keep using it. I just want to disable the logging of php errors in that particular library. I simply tried to set the log threshold to 0 before calling the library and setting it to a higher after. This however doesn't seem to have any effect.

Any ideas on how to make this happen?

#2

[eluser]Clooner[/eluser]
For now I just fixed the problems with mpdf... Still curious, is there a way to do disable logging temporarily?
#3

[eluser]imcl[/eluser]
jeroen how did you fix this problem?
#4

[eluser]Clooner[/eluser]
[quote author="imcl" date="1344135265"]jeroen how did you fix this problem?[/quote]
At first I just got rid of the bugs by fixing them in the library. This however is a silly solution because I have no interest in looking into the library. The key is to load the library after you change the setting and then you will be good!
#5

[eluser]NeoArc[/eluser]
PHP errors may slow down your site Wink
Make sure the library is updated.




Theme © iAndrew 2016 - Forum software by © MyBB