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