1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-10 07:06:40 +02:00

Merge pull request #420 from Rvanlaak/master

fix PushoverHandler notice
This commit is contained in:
Jordi Boggiano
2014-09-29 22:55:05 +01:00

View File

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