Project

General

Profile

Actions

Bug #65577

closed

Logging API does not cope with Exceptions properly

Added by Markus Klein over 9 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
Category:
Logging
Target version:
Start date:
2015-03-06
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
easy
Is Regression:
No
Sprint Focus:

Description

Logging exceptions via Logging API does not print them as the LogRecord processes the exception through json_encode which results in an empty object.

Testcode:

ini_set('zlib.output_compression',0);
header('Content-type: text/plain; charset=utf-8');

$e = new Exception('foo');
$msg = (string)$e;
$msg2 = json_encode($e);

echo $msg;
echo "\n\n";
echo $msg2;

$msg2 gives an empty result {}.


Related issues 1 (1 open0 closed)

Related to TYPO3 Core - Task #104477: Remove the hyphen as prefix for log context data in the DatabaseWriterUnder Review2024-07-25

Actions
Actions

Also available in: Atom PDF