mirror of
https://github.com/opnsense/src.git
synced 2026-04-29 01:59:38 -04:00
Teach whereintheworld to preserve TinderboxNG log messages.
This commit is contained in:
parent
8ebd558f5d
commit
a2036ac045
1 changed files with 5 additions and 1 deletions
|
|
@ -34,6 +34,10 @@ while ($line = <>) {
|
|||
$lastwasdash = 0;
|
||||
next;
|
||||
}
|
||||
if ($line =~ /^TB /) {
|
||||
print $line;
|
||||
next;
|
||||
}
|
||||
if ($line =~ /^=+>/) {
|
||||
@lines = ();
|
||||
}
|
||||
|
|
@ -58,7 +62,7 @@ if (!$error) {
|
|||
}
|
||||
}
|
||||
foreach $line (@lines) {
|
||||
if (!$error && length($line) >= $width) {
|
||||
if (!$error && $line !~ m/^TB / && length($line) >= $width) {
|
||||
substr($line, $width - 7) = " [...]\n";
|
||||
}
|
||||
print $line;
|
||||
|
|
|
|||
Loading…
Reference in a new issue