1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-23 09:36:11 +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
parent d9462d50b0
commit b1b27d8a44
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']);