Skip to content

Commit

Permalink
Little update which corrects a bug which prevents Exceptions to be wr…
Browse files Browse the repository at this point in the history
…itten to Graylog
  • Loading branch information
mb-tec committed Jul 20, 2017
1 parent 1cab8e4 commit 901e61c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/code/community/FireGento/Logger/Model/Graylog2.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ protected function _write($event)

Mage::helper('firegento_logger')->addEventMetadata($event);

$message = $event->getMessage();
$message = trim($event->getMessage());

$eofMessageFirstLine = strpos($message, "\n");
$shortMessage = (false === $eofMessageFirstLine) ? $message :
Expand Down

0 comments on commit 901e61c

Please sign in to comment.