File tree Expand file tree Collapse file tree 1 file changed +28
-9
lines changed
Expand file tree Collapse file tree 1 file changed +28
-9
lines changed Original file line number Diff line number Diff line change 99
1010use Monolog \LogRecord ;
1111
12- /**
13- * Debug handler which doesn't require debug mode enabled
14- */
15- class Debug extends \Magento \Framework \Logger \Handler \Debug
16- {
12+ if (\Monolog \Logger::API == 3 ) {
13+ /**
14+ * Debug handler which doesn't require debug mode enabled
15+ */
16+ class Debug extends \Magento \Framework \Logger \Handler \Debug
17+ {
18+ /**
19+ * @param LogRecord $record
20+ * @return mixed
21+ */
22+ public function isHandling (LogRecord $ record ): bool
23+ {
24+ return parent ::isHandling ($ record );
25+ }
26+ }
27+
28+ }
29+ else {
1730 /**
18- * @param array $record
19- * @return mixed
31+ * Debug handler which doesn't require debug mode enabled
2032 */
21- public function isHandling ( LogRecord $ record ): bool
33+ class Debug extends \ Magento \ Framework \ Logger \ Handler \Debug
2234 {
23- return parent ::isHandling ($ record );
35+ /**
36+ * @param array $record
37+ * @return mixed
38+ */
39+ public function isHandling (array $ record ): bool
40+ {
41+ return parent ::isHandling ($ record );
42+ }
2443 }
2544}
You can’t perform that action at this time.
0 commit comments