networkteam / sentry_client

TYPO3 Extension for exception logging with sentry, see http://www.getsentry.com
33 stars 36 forks source link

[FEATURE] Special handling for log records with "exception" keys #107

Open cweiske opened 2 months ago

cweiske commented 2 months ago

TYPO3 scheduler catches exceptions of failed tasks and logs messages with the exception as "exception" data property.

PHP Exception objects do not get serialized by json_encode() and thus never reach Sentry; all information about them is lost.

If a log record contains an 'exception' data key, then the exception itself is logged to Sentry. The log message is kept as breadcrumb.

Resolves: https://github.com/networkteam/sentry_client/issues/106