Commit e39a8147 authored by Leigh B Stoller's avatar Leigh B Stoller

Minor fix; limit error message to 128 characters when storing to the

logfile metadata.
parent 0a7db744
......@@ -750,7 +750,11 @@ else {
# will land at the end of the file.
if (ref($result) && defined($result->{'output'}) &&
$result->{'output'} ne "") {
push(@metadata, ["Output", ( split /\n/, $result->{'output'} )[0]]);
my $line = (split(/\n/, $result->{'output'}))[0];
if (length($line) > 128) {
$line = substr($line, 0, 128);
}
push(@metadata, ["Output", $line]);
}
# Purge old data; if we forked we want latest.
$logfile->SetMetadata(\@metadata, 1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment