File tree Expand file tree Collapse file tree 1 file changed +9
-28
lines changed Expand file tree Collapse file tree 1 file changed +9
-28
lines changed Original file line number Diff line number Diff line change 9
9
10
10
use Monolog \LogRecord ;
11
11
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 {
12
+ /**
13
+ * Debug handler which doesn't require debug mode enabled
14
+ */
15
+ class Debug extends \Magento \Framework \Logger \Handler \Debug
16
+ {
30
17
/**
31
- * Debug handler which doesn't require debug mode enabled
18
+ * @param array $record
19
+ * @return mixed
32
20
*/
33
- class Debug extends \ Magento \ Framework \ Logger \ Handler \Debug
21
+ public function isHandling ( LogRecord $ record ): bool
34
22
{
35
- /**
36
- * @param array $record
37
- * @return mixed
38
- */
39
- public function isHandling (array $ record ): bool
40
- {
41
- return parent ::isHandling ($ record );
42
- }
23
+ return parent ::isHandling ($ record );
43
24
}
44
25
}
You can’t perform that action at this time.
0 commit comments