We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2bfeb7c commit 2ba6e1cCopy full SHA for 2ba6e1c
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