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

Adds exception codes to the exception data in NormalizeFormatter

This commit is contained in:
Mike Sherov
2014-10-23 15:33:11 -04:00
parent d0a9acbad0
commit f5fe05c27f
3 changed files with 5 additions and 1 deletions

View File

@@ -55,6 +55,7 @@ class ScalarFormatterTest extends \PHPUnit_Framework_TestCase
'ban' => $this->encodeJson(array(
'class' => get_class($exception),
'message' => $exception->getMessage(),
'code' => $exception->getCode(),
'file' => $exception->getFile() . ':' . $exception->getLine(),
'trace' => $this->buildTrace($exception)
))
@@ -87,6 +88,7 @@ class ScalarFormatterTest extends \PHPUnit_Framework_TestCase
'exception' => array(
'class' => get_class($exception),
'message' => $exception->getMessage(),
'code' => $exception->getCode(),
'file' => $exception->getFile() . ':' . $exception->getLine(),
'trace' => $this->buildTrace($exception)
)