[FOLLOWUP][BUGFIX] Handle exceptions in Logging API 96/37896/2
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:30:38 +0000 (23:30 +0100)
commit22db11985b475d3e1aa7d5d130a22ce26d22a636
tree0cfea697f2414736a11069b7348391403c5f0eda
parent089417cb8dd9fb5b658647010b95f08c640615d9
[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/37896
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