silverstripe / silverstripe-raygun

Raygun.com integration for PHP
BSD 3-Clause "New" or "Revised" License
6 stars 23 forks source link

Regular log messages break #42

Closed sminnee closed 5 years ago

sminnee commented 5 years ago

With the Raygun module installed, it looks like this:

Injector::inst()->get(LoggerInterface::class)->info('Log test for ssp/core');

Causes this error:

Uncaught Exception InvalidArgumentException: “Invalid record given.” at /var/www/meridia1/releases/004e7725df19f851bc4fc1cbbcfee1ef339785a2/vendor/graze/monolog-extensions/src/Graze/Monolog/Handler/RaygunHandler.php line 66 {“exception”:“[object] (InvalidArgumentException(code: 0): Invalid record given. at /var/www/meridia1/releases/004e7725df19f851bc4fc1cbbcfee1ef339785a2/vendor/graze/monolog-extensions/src/Graze/Monolog/Handler/RaygunHandler.php:66)“} []

https://github.com/silverstripe/silverstripe-framework/pull/8241 would make this issue go away, but that's not merged yet and will never be in SilverStripe 4.0 - 4.3.