Skip to content

Commit b94d2e1

Browse files
authored
Merge pull request #18 from pana1990/15-fix-rotate
fix rotate
2 parents 1e6f3d7 + fa29e9e commit b94d2e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PhpWebProfiler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ private function isTraceable(): bool
4848
private function logRotate(): void
4949
{
5050
$storage = $this->getStorage();
51-
$logs = $storage->find([]);
51+
$logs = $storage->find([], $this->keepMaxLogs + 1);
5252

5353
if ($this->keepMaxLogs < count($logs)) {
5454
$storage->clear();

0 commit comments

Comments
 (0)