mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-18 02:41:24 +02:00
Put braces on same line for if statements, as requested by @Seldaek in
https://github.com/Seldaek/monolog/pull/76/files#r737303
This commit is contained in:
@@ -54,12 +54,9 @@ class RavenHandler extends AbstractProcessingHandler
|
|||||||
*/
|
*/
|
||||||
protected function write(array $record)
|
protected function write(array $record)
|
||||||
{
|
{
|
||||||
if ($record['level'] == Logger::ERROR)
|
if ($record['level'] == Logger::ERROR) {
|
||||||
{
|
|
||||||
$this->ravenClient->captureException($record['context']['context']);
|
$this->ravenClient->captureException($record['context']['context']);
|
||||||
}
|
} else {
|
||||||
else
|
|
||||||
{
|
|
||||||
$this->ravenClient->captureMessage(
|
$this->ravenClient->captureMessage(
|
||||||
$record['formatted']['message'], $params = $record,
|
$record['formatted']['message'], $params = $record,
|
||||||
$record['formatted']['level'], $stack = true
|
$record['formatted']['level'], $stack = true
|
||||||
|
Reference in New Issue
Block a user