* Fix escape_log mention in write_log_records
$doc = new Search::Estraier::Document if not defined $doc;
my $message = parse($bug_message);
- $doc->add_text(join('',make_list(values %{$message})));
+ $doc->add_text(join("\n",make_list(values %{$message})));
# * @id : the ID number determined automatically when the document is registered.
# * @uri : the location of a document which any document should have.
for my $record (@records) {
my $type = $record->{type};
- my ($text) = escapelog($record->{text});
+ my ($text) = escape_log($record->{text});
die "type '$type' with no text field" unless defined $text;
if ($type eq 'autocheck') {
print $logfh "\01\n$text\03\n";
1;
}
-=head2 escapelog
+=head2 escape_log
- print {$log} escapelog(@log)
+ print {$log} escape_log(@log)
Applies the log escape regex to the passed logfile.