1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-22 17:16:18 +02:00

Add level parameter to payload when reporting Rollbar exceptions (#852)

This commit is contained in:
Erik Johansson
2017-03-19 00:49:00 +01:00
committed by Jordi Boggiano
parent 25da38373a
commit 81e8bf6189
2 changed files with 83 additions and 0 deletions

View File

@@ -97,6 +97,7 @@ class RollbarHandler extends AbstractProcessingHandler
));
if (isset($context['exception']) && $context['exception'] instanceof Exception) {
$payload['level'] = $context['level'];
$exception = $context['exception'];
unset($context['exception']);