Closed koekaverna closed 10 months ago
@Seldaek Hi, it's not fixed in 2.9.2 JsonFormatter. There is normalize method override NormalizerFormatter::normalize and have same problem...
@koekaverna https://github.com/Seldaek/monolog/commit/884aa47a055ea3e8e351ceaf4dfc67f52fff44c0 should take care of this for JsonFormatter at last.
Monolog version 2|3
When
NormalizeFormatter
usemethod_exists
on incomplete object it cause fatal error.I found the problem in logs without any stacktrace information. It can happen when
unserialize
wrong response from service orunserialize
outdated data from session. Anyway NormalizeFormatter should not make fatal error even on corrupted data.I made PR with fix. Please check it out. https://github.com/Seldaek/monolog/pull/1833