mirror of
https://github.com/Seldaek/monolog.git
synced 2025-02-24 06:52:34 +01:00
fix PushoverHandler notice
This commit is contained in:
parent
b3f039339d
commit
bd77dd9f93
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user