Skip to content

Commit

Permalink
fix correct logging of rollbar errors (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
friek108 authored and baibaratsky committed May 8, 2018
1 parent 7332c97 commit 567c579
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion log/Target.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ public function init()
public function export()
{
foreach ($this->messages as $message) {
Rollbar::log(Level::fromName(self::getLevelName($message[1])), $message[0], [
$levelName = self::getLevelName($message[1]);
Rollbar::log(Level::$levelName(), $message[0], [
'category' => $message[2],
'request_id' => $this->requestId,
'timestamp' => (int)$message[3],
Expand Down

0 comments on commit 567c579

Please sign in to comment.