We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4cdf561 + 2ba6e1c commit 6e905f1Copy full SHA for 6e905f1
1 file changed
src/Log/Log.php
@@ -64,7 +64,7 @@ public function Log(string $name, $log, $st, $ed, $data): ?bool
64
*/
65
public function LogStrace(): ?bool
66
{
67
- foreach (array_slice(debug_backtrace(), -intval(Configs::getInstance()->get('debug_strace_num'))) as $strace) {
+ foreach (array_slice(debug_backtrace(), 0, intval(Configs::getInstance()->get('debug_strace_num'))) as $strace) {
68
if (!$this->Log('strace', 'strace', 0, 0, $strace)) {
69
return false;
70
}
0 commit comments