Skip to content

Commit

Permalink
Update log detail
Browse files Browse the repository at this point in the history
  • Loading branch information
zxcvdavid committed Jul 14, 2017
1 parent c4cf1c2 commit 1a04f70
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Sdk/Log/SkynetLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,11 @@ private function buildBody($level, $message, array $context = [])
}
}

if ($context == [])
$context = new \stdClass();

$skynetHdr = $this->buildSkynetHeader($level, $exceptionClass);
$skynetBody = $this->buildSkynetbody($message, $stackTrace, $context);
$skynetBody = $this->buildSkynetbody($message, $stackTrace, [$context]);

return "$skynetHdr|$skynetBody";
}
Expand Down

0 comments on commit 1a04f70

Please sign in to comment.