mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-05 20:57:36 +02:00
CS fixes
This commit is contained in:
@@ -108,11 +108,13 @@ class PushoverHandler extends SocketHandler
|
|||||||
$this->user = null;
|
$this->user = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setHighPriorityLevel($value) {
|
public function setHighPriorityLevel($value)
|
||||||
|
{
|
||||||
$this->highPriorityLevel = $value;
|
$this->highPriorityLevel = $value;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setEmergencyLevel($value) {
|
public function setEmergencyLevel($value)
|
||||||
|
{
|
||||||
$this->emergencyLevel = $value;
|
$this->emergencyLevel = $value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -69,7 +69,7 @@ class RavenHandler extends AbstractProcessingHandler
|
|||||||
$level = $this->level;
|
$level = $this->level;
|
||||||
|
|
||||||
// filter records based on their level
|
// filter records based on their level
|
||||||
$records = array_filter($records, function($record) use($level) {
|
$records = array_filter($records, function($record) use ($level) {
|
||||||
return $record['level'] >= $level;
|
return $record['level'] >= $level;
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -79,7 +79,7 @@ class RavenHandler extends AbstractProcessingHandler
|
|||||||
|
|
||||||
// the record with the highest severity is the "main" one
|
// the record with the highest severity is the "main" one
|
||||||
$record = array_reduce($records, function($highest, $record) {
|
$record = array_reduce($records, function($highest, $record) {
|
||||||
if($record['level'] >= $highest['level']) {
|
if ($record['level'] >= $highest['level']) {
|
||||||
$highest = $record;
|
$highest = $record;
|
||||||
|
|
||||||
return $highest;
|
return $highest;
|
||||||
@@ -140,6 +140,7 @@ class RavenHandler extends AbstractProcessingHandler
|
|||||||
if (isset($record['context']['exception']) && $record['context']['exception'] instanceof \Exception) {
|
if (isset($record['context']['exception']) && $record['context']['exception'] instanceof \Exception) {
|
||||||
$options['extra']['message'] = $record['formatted'];
|
$options['extra']['message'] = $record['formatted'];
|
||||||
$this->ravenClient->captureException($record['context']['exception'], $options);
|
$this->ravenClient->captureException($record['context']['exception'], $options);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -54,10 +54,12 @@ class StubNewRelicHandler extends NewRelicHandler
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function newrelic_notice_error() {
|
function newrelic_notice_error()
|
||||||
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
function newrelic_add_custom_parameter() {
|
function newrelic_add_custom_parameter()
|
||||||
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user