1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-09 14:46:46 +02:00

Make use of 'extra'

Follow guidelines by using the 'extra' key from record
This commit is contained in:
Rvanlaak
2014-04-09 16:04:48 +02:00
parent a49cc6e8aa
commit 82c040ec12

View File

@@ -101,8 +101,8 @@ class PushoverHandler extends SocketHandler
$dataArray['priority'] = 1; $dataArray['priority'] = 1;
} }
if (isset($record['sound']) && in_array($record['sound'], $this->sounds)) { if (isset($record['extra']['sound']) && in_array($record['extra']['sound'], $this->sounds)) {
$dataArray['sound'] = $record['sound']; $dataArray['sound'] = $record['extra']['sound'];
} }
return http_build_query($dataArray); return http_build_query($dataArray);