diff --git a/src/Monolog/Handler/PushoverHandler.php b/src/Monolog/Handler/PushoverHandler.php index 0b20f2d4..2a4fba41 100644 --- a/src/Monolog/Handler/PushoverHandler.php +++ b/src/Monolog/Handler/PushoverHandler.php @@ -101,7 +101,9 @@ class PushoverHandler extends SocketHandler $dataArray['priority'] = 1; } - if (isset($record['extra']['sound']) && in_array($record['extra']['sound'], $this->sounds)) { + if (isset($record['context']['sound']) && in_array($record['context']['sound'], $this->sounds)) { + $dataArray['sound'] = $record['context']['sound']; + } elseif (isset($record['extra']['sound']) && in_array($record['extra']['sound'], $this->sounds)) { $dataArray['sound'] = $record['extra']['sound']; }