1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-02-24 15:02:28 +01:00

Send datetime as a string so it can be converted to JSON.

This commit is contained in:
Paul Statezny 2014-03-06 14:37:59 -07:00
parent fbf654f31d
commit 94c90ade89

View File

@ -42,7 +42,7 @@ class RollbarHandler extends AbstractProcessingHandler
$extraData = array(
'level' => $record['level'],
'channel' => $record['channel'],
'datetime' => $record['datetime'],
'datetime' => $record['datetime']->format('U'),
);
$this->rollbarNotifier->report_message(