]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/V2Writable.pm
v2writable: remove "resent" message for duplicate Message-IDs
[public-inbox.git] / lib / PublicInbox / V2Writable.pm
index 30ca9cec47ce8474250119b3d76dbd7dd1c99be1..dc96b87a7239f4da40078fd002f8e5787ec4d2ee 100644 (file)
@@ -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: