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:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user