don't dump debug output without DEBUG=1
authorDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 25 Nov 2013 11:54:57 +0000 (12:54 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 25 Nov 2013 11:54:57 +0000 (12:54 +0100)
html.pl

diff --git a/html.pl b/html.pl
index 84d54e2..2acc2df 100755 (executable)
--- a/html.pl
+++ b/html.pl
@@ -21,7 +21,7 @@ my $dbh = C4::Context->dbh;
 
 sub debug {
        my ($title, $data) = @_;
-       print "# $title ",dump($data), $/;
+       print "# $title ",dump($data), $/ if $ENV{DEBUG};
 }
 
 my $xslfilename = 'compact.xsl';