[FOLLOWUP][BUGFIX] Handle exceptions in Logging API 38/37638/3
authorSteffen Müller <typo3@t3node.com>
Sun, 8 Mar 2015 14:43:28 +0000 (15:43 +0100)
committerMarkus Klein <klein.t3@reelworx.at>
Mon, 16 Mar 2015 22:18:47 +0000 (23:18 +0100)
commitad3a03b7cafe6e4334552dec6e99625a0b85d146
tree4ad683f1df3e33918320395e58cef4fafae30d2b
parentae05d7962e9bd7b4d7668d2195330dea391abf80
[FOLLOWUP][BUGFIX] Handle exceptions in Logging API

Do not run exceptions through json_encode() but convert them to strings
first.

Resolves: #65577
Releases: master, 6.2
Change-Id: I8c893f64942f8ec18aed1cef5a276345b3f568fe
Reviewed-on: http://review.typo3.org/37638
Reviewed-by: Frank Nägler <typo3@naegler.net>
Tested-by: Frank Nägler <typo3@naegler.net>
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
typo3/sysext/core/Classes/Log/LogRecord.php
typo3/sysext/core/Classes/Log/Writer/DatabaseWriter.php
typo3/sysext/core/Classes/Log/Writer/FileWriter.php
typo3/sysext/core/Classes/Log/Writer/NullWriter.php
typo3/sysext/core/Classes/Log/Writer/PhpErrorLogWriter.php
typo3/sysext/core/Classes/Log/Writer/SyslogWriter.php
typo3/sysext/core/Tests/Unit/Log/Writer/DatabaseWriterTest.php