about summary refs log tree commit homepage
path: root/lib/PublicInbox
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-10-16 22:52:47 -1100
committerEric Wong <e@80x24.org>2021-10-17 19:04:41 +0000
commit84897536c91023566556d3564da6f3d4316f557e (patch)
tree5704e2bd200de2e594646eb6c8b277c562540c9b /lib/PublicInbox
parent796da029ba295903d0dfb389c1576ce3985ea1af (diff)
downloadpublic-inbox-84897536c91023566556d3564da6f3d4316f557e.tar.gz
Since this is intended for use on the command-line,
include TZ offset in time and try to shorten the
message a bit so it wraps less on a terminal.
Diffstat (limited to 'lib/PublicInbox')
-rw-r--r--lib/PublicInbox/ExtSearchIdx.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/PublicInbox/ExtSearchIdx.pm b/lib/PublicInbox/ExtSearchIdx.pm
index 69d048fb..67d72036 100644
--- a/lib/PublicInbox/ExtSearchIdx.pm
+++ b/lib/PublicInbox/ExtSearchIdx.pm
@@ -719,11 +719,12 @@ sub eidxq_lock_acquire ($) {
                 return $locked if $locked eq $cur;
         }
         my ($pid, $time, $euid, $ident) = split(/-/, $cur, 4);
-        my $t = strftime('%Y-%m-%d %k:%M:%S', gmtime($time));
+        my $t = strftime('%Y-%m-%d %k:%M %z', localtime($time));
+        local $self->{current_info} = 'eidxq';
         if ($euid == $> && $ident eq host_ident) {
                 if (kill(0, $pid)) {
                         warn <<EOM; return;
-I: PID:$pid (re)indexing Xapian since $t, it will continue our work
+I: PID:$pid (re)indexing since $t, it will continue our work
 EOM
                 }
                 if ($!{ESRCH}) {