Skip to content

Commit 6e905f1

Browse files
authored
Merge pull request #2 from dshibin/dev
修改strace显示顺序,最近排序
2 parents 4cdf561 + 2ba6e1c commit 6e905f1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Log/Log.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function Log(string $name, $log, $st, $ed, $data): ?bool
6464
*/
6565
public function LogStrace(): ?bool
6666
{
67-
foreach (array_slice(debug_backtrace(), -intval(Configs::getInstance()->get('debug_strace_num'))) as $strace) {
67+
foreach (array_slice(debug_backtrace(), 0, intval(Configs::getInstance()->get('debug_strace_num'))) as $strace) {
6868
if (!$this->Log('strace', 'strace', 0, 0, $strace)) {
6969
return false;
7070
}

0 commit comments

Comments
 (0)