about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong (Contractor, The Linux Foundation) <e@80x24.org>2018-03-19 08:14:59 +0000
committerEric Wong (Contractor, The Linux Foundation) <e@80x24.org>2018-03-19 08:18:31 +0000
commit0a254eeea41cf5c0afde2ce188d7d367df5d4d95 (patch)
tree32569a8bbd35995280ec93664907ddd1e1de582b /lib
parent21d3e01f609c8a6111dc5003638043d65ed721de (diff)
downloadpublic-inbox-0a254eeea41cf5c0afde2ce188d7d367df5d4d95.tar.gz
public-inbox-watch gets restarted on reboots and whatnot, so
it could get pointlessly noisy.  This message was only useful
during initial development and imports.
Diffstat (limited to 'lib')
-rw-r--r--lib/PublicInbox/V2Writable.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/PublicInbox/V2Writable.pm b/lib/PublicInbox/V2Writable.pm
index 30ca9cec..dc96b87a 100644
--- a/lib/PublicInbox/V2Writable.pm
+++ b/lib/PublicInbox/V2Writable.pm
@@ -119,10 +119,10 @@ sub num_for {
                 foreach my $m (@$mids) {
                         # read-only lookup now safe to do after above barrier
                         my $existing = $self->lookup_content($mime, $m);
-                        if ($existing) {
-                                warn "<$m> resent\n";
-                                return; # easy, don't store duplicates
-                        }
+                        # easy, don't store duplicates
+                        # note: do not add more diagnostic info here since
+                        # it gets noisy on public-inbox-watch restarts
+                        return if $existing;
                 }
 
                 # very unlikely: