]> git.donarmstrong.com Git - debbugs.git/blobdiff - Debbugs/Status.pm
add missing if $DEBUG to Debbugs::Status::bug_archiveable
[debbugs.git] / Debbugs / Status.pm
index 360cf38cfe2a3e1ac01dcc12af885408991449c0..580a62aa9e922502688a2db7e268c3023bf19289 100644 (file)
@@ -624,7 +624,7 @@ sub bug_archiveable{
      # Bugs can be archived if they are
      # 1. Closed
      if (not defined $status->{done} or not length $status->{done}) {
-         print STDERR "Cannot archive $param{bug} because it is not done\n";
+         print STDERR "Cannot archive $param{bug} because it is not done\n" if $DEBUG;
          return $cannot_archive
      }
      # If we just are checking if the bug can be archived, we'll not even bother