Skip to content

Commit

Permalink
Make debug output conditional on $debug
Browse files Browse the repository at this point in the history
  • Loading branch information
devel-chm committed Mar 5, 2015
1 parent 538f34a commit 57b9c5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Graphics/Graphics2D.pm
Expand Up @@ -866,13 +866,13 @@ sub close_imag2d_window {
}
}

print STDERR "close_imag2d_window: started with " . scalar(@imag2d_list) . " windows.\n";
print STDERR "close_imag2d_window: started with " . scalar(@imag2d_list) . " windows.\n" if $debug;
if ($found_it) {
@imag2d_list = grep { $_->{window_id} != $win_id } @imag2d_list;
} else {
warn "close_imag2d_window: could not find open window\n";
}
print STDERR "close_imag2d_window: finished with " . scalar(@imag2d_list) . " windows.\n";
print STDERR "close_imag2d_window: finished with " . scalar(@imag2d_list) . " windows.\n" if $debug;
}

#------------------------------------------------------------------------
Expand Down

0 comments on commit 57b9c5b

Please sign in to comment.