Skip to content

Commit f8f1540

Browse files
authored
Merge pull request #41 from opcodesio/bug/last-log-not-displayed
fix the last log not being indexed and displayed
2 parents e664872 + b66888a commit f8f1540

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "opcodesio/log-viewer",
3-
"version": "v1.2.2",
3+
"version": "v1.2.3",
44
"description": "Fast and easy-to-use log viewer for your Laravel application",
55
"keywords": [
66
"arukompas",

src/LogReader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ public function scan(bool $force = false): self
423423
$currentLog .= $line;
424424
}
425425

426-
if ($currentLog !== '' && preg_match(self::LOG_MATCH_PATTERN, $line) === 1) {
426+
if ($currentLog !== '' && preg_match(self::LOG_MATCH_PATTERN, $currentLog) === 1) {
427427
if ((is_null($this->query) || preg_match($this->query, $currentLog))) {
428428
$this->indexLogPosition($this->nextLogIndex, $currentLogLevel, $currentLogPosition);
429429
}

0 commit comments

Comments
 (0)