Improve logging
Change-Id: If9d8535b409179d497de467a4e8bb51a52556f32
diff --git a/Changes b/Changes
index dd7d4bd..de79254 100644
--- a/Changes
+++ b/Changes
@@ -1,7 +1,8 @@
-0.39 2019-11-29
+0.39 2019-12-11
- Added Talismane support.
- Added "distributor" field to I5 metadata.
- Added DGD link field to I5 metadata.
+ - Improve logging.
0.38 2019-05-22
- Stop file processing when base tokenization
diff --git a/lib/KorAP/XML/Batch/File.pm b/lib/KorAP/XML/Batch/File.pm
index 2dd5171..1456cf7 100644
--- a/lib/KorAP/XML/Batch/File.pm
+++ b/lib/KorAP/XML/Batch/File.pm
@@ -41,7 +41,8 @@
my $doc = KorAP::XML::Krill->new(
path => $input,
meta_type => $self->{meta_type},
- cache => $self->{cache}
+ cache => $self->{cache},
+ log => $self->{log}
);
# Parse document
diff --git a/lib/KorAP/XML/Krill.pm b/lib/KorAP/XML/Krill.pm
index 2faf86b..d35396e 100644
--- a/lib/KorAP/XML/Krill.pm
+++ b/lib/KorAP/XML/Krill.pm
@@ -95,7 +95,7 @@
$self->corpus_sigle($1);
}
else {
- $self->log->warn($unable . ': ID not parseable');
+ $self->log->warn($unable . ': ID not parseable: ' . $rt->{'-docid'});
return;
};
}