LogglyHandler - incorrect records comparison.
dimasvas opened this issue · comments
Dimitry commented
Monolog version 3.4.0
Loggly does not receive all logs. The reason is an incorrect records comparison in LogglyHandler.
Now the code is:
return ($record->level >= $level);
It looks like should be:
return ($record->level->value >= $level->value);
We should compare values properties of records.
omerimzali commented
Dimitry commented
Hi omerimzali! Thank you very much!!!!
I have just decorated the handler and created a temporary kludge until a new version of the monolog package with the fix will be released. Thank you again! Looking forward for new monolog fixes.