]> git.deb.at Git - deb/packages.git/blobdiff - lib/Packages/DB.pm
Move $debug_allowed to CGI as a real constant and modify all debug() calls
[deb/packages.git] / lib / Packages / DB.pm
index e959f60298182b33c722bd5bf1af680f64fae538..0c0ebdc2288a24f2196f75dc395e41036c1f9388 100644 (file)
@@ -42,7 +42,7 @@ sub init {
        O_RDONLY, 0666, $DB_BTREE
            or die "couldn't tie postfix db $DBDIR/source_postfixes.db: $!";
 
-       debug( "tied databases ($dbmodtime > $db_read_time)" );
+       debug( "tied databases ($dbmodtime > $db_read_time)" ) if DEBUG;
        $db_read_time = $dbmodtime;
     }
 }