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 9
9
10
10
use Monolog \LogRecord ;
11
11
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 {
17
30
/**
18
- * @param array $record
19
- * @return mixed
31
+ * Debug handler which doesn't require debug mode enabled
20
32
*/
21
- public function isHandling ( LogRecord $ record ): bool
33
+ class Debug extends \ Magento \ Framework \ Logger \ Handler \Debug
22
34
{
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
+ }
24
43
}
25
44
}
You can’t perform that action at this time.
0 commit comments