From 6bb8478c8dacf83492de3afe15a615d646f0904f Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 13 Oct 2021 07:00:35 +0000 Subject: lei: use standard warn() in more places warn() is easier to augment with context information, and frankly unavoidable in the presence of 3rd-party libraries we don't control. --- lib/PublicInbox/LeiImportKw.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/PublicInbox/LeiImportKw.pm') diff --git a/lib/PublicInbox/LeiImportKw.pm b/lib/PublicInbox/LeiImportKw.pm index c35c5c26..8359f338 100644 --- a/lib/PublicInbox/LeiImportKw.pm +++ b/lib/PublicInbox/LeiImportKw.pm @@ -36,7 +36,7 @@ sub ck_update_kw { # via wq_io_do my ($self, $url, $uid, $kw) = @_; my @oidbin = $self->{-lms_ro}->num_oidbin($url, $uid); my $uid_url = "$url/;UID=$uid"; - @oidbin > 1 and $self->{lei}->err("W: $uid_url not unique:\n", + @oidbin > 1 and warn("W: $uid_url not unique:\n", map { "\t".unpack('H*', $_)."\n" } @oidbin); my %seen; my @docids = sort { $a <=> $b } grep { !$seen{$_}++ } -- cgit v1.2.3-24-ge0c7