]> git.donarmstrong.com Git - debbugs.git/commitdiff
output more debugging information while debug is set
authorDon Armstrong <don@donarmstrong.com>
Wed, 21 Mar 2012 18:45:21 +0000 (11:45 -0700)
committerDon Armstrong <don@donarmstrong.com>
Wed, 21 Mar 2012 18:45:21 +0000 (11:45 -0700)
Debbugs/Control.pm

index 924e7d4de5518c7e49fc80caf8fc9ef18aa6b207..5285ebdde4540b38eb78565837b3bedf4ef46207 100644 (file)
@@ -3060,7 +3060,6 @@ sub bug_archive {
          print {$transcript} "Bug $param{bug} cannot be archived\n";
          die "Bug $param{bug} cannot be archived";
      }
-     print {$debug} "$param{bug} considering\n";
      if (not $param{archive_unarchived} and
         not exists $data[0]{unarchived}
        ) {
@@ -3574,7 +3573,8 @@ sub __begin_control {
                             );
     my $new_locks;
     my ($debug,$transcript) = __handle_debug_transcript(@_);
-    print {$debug} "$param{bug} considering\n";
+    print {$debug} "considering bug $param{bug} for ".(exists $param{command}?$param{command}:scalar caller())."\n";
+    print {$debug} Dumper((caller => [caller(1)],param => \%param))."\n";
     $lockhash = $param{locks} if exists $param{locks};
     my @data = ();
     my $old_die = $SIG{__DIE__};