]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Admin.pm
default to CORE::warn in $SIG{__WARN__} handlers
[public-inbox.git] / lib / PublicInbox / Admin.pm
index b468108e8ab654f8cb7288c65dff0905c7b776ea..d414e4e205d95167b5a2cad241936fc12cd55d6b 100644 (file)
@@ -241,7 +241,7 @@ sub index_inbox {
        }
        local %SIG = %SIG;
        setup_signals(\&index_terminate, $ibx);
-       my $warn_cb = $SIG{__WARN__} // sub { print STDERR @_ };
+       my $warn_cb = $SIG{__WARN__} // \&CORE::warn;
        my $idx = { current_info => $ibx->{inboxdir} };
        my $warn_ignore = PublicInbox::InboxWritable->can('warn_ignore');
        local $SIG{__WARN__} = sub {