mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-10 07:06:40 +02:00
fix PushoverHandler notice
This commit is contained in:
@@ -93,11 +93,11 @@ class PushoverHandler extends SocketHandler
|
|||||||
'timestamp' => $timestamp
|
'timestamp' => $timestamp
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($record['level'] >= $this->emergencyLevel) {
|
if (isset($record['level']) && $record['level'] >= $this->emergencyLevel) {
|
||||||
$dataArray['priority'] = 2;
|
$dataArray['priority'] = 2;
|
||||||
$dataArray['retry'] = $this->retry;
|
$dataArray['retry'] = $this->retry;
|
||||||
$dataArray['expire'] = $this->expire;
|
$dataArray['expire'] = $this->expire;
|
||||||
} elseif ($record['level'] >= $this->highPriorityLevel) {
|
} elseif (isset($record['level']) && $record['level'] >= $this->highPriorityLevel) {
|
||||||
$dataArray['priority'] = 1;
|
$dataArray['priority'] = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user