1
0
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:
Rvanlaak
2014-09-15 12:16:22 +02:00
parent b3f039339d
commit bd77dd9f93

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