1
0
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:
Marc Abramowitz
2012-04-26 11:14:03 -07:00
parent f1580092bc
commit 6d158110d5

View File

@@ -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