We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57b9eee commit 14890e0Copy full SHA for 14890e0
src/Logger.php
@@ -61,11 +61,11 @@ protected function generateExtraContextInfo()
61
// attach class_path
62
// NOTE: it's hardcoded, should find a better way to get caller class
63
$stack = debug_backtrace();
64
- $caller = $stack[2];
+ $caller = $stack[3];
65
66
if ($caller['class'] === 'Illuminate\Log\LogManager') {
67
// It means log from channel
68
- $caller = $stack[4];
+ $caller = $stack[5];
69
}
70
71
$info['class_path'] = $caller['class'];
0 commit comments