removed debug output
authordpavlin <dpavlin@8392b6e1-25fa-0310-8288-cc32f8e212ea>
Mon, 11 Jul 2005 00:07:25 +0000 (00:07 +0000)
committerdpavlin <dpavlin@8392b6e1-25fa-0310-8288-cc32f8e212ea>
Mon, 11 Jul 2005 00:07:25 +0000 (00:07 +0000)
git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/BackupPC/trunk@15 8392b6e1-25fa-0310-8288-cc32f8e212ea

bin/BackupPC_updatedb

index aaf9939..61ecc6b 100755 (executable)
@@ -186,7 +186,7 @@ foreach my $host_key (keys %{$hosts}) {
                my $backupNum = $backup->{'num'};
                my @backupShares = ();
 
-               print $hosts->{$host_key}->{'host'},"\t$backupNum\n";
+               print $hosts->{$host_key}->{'host'},"\t#$backupNum\n";
 
                $sth->{backups_broj}->execute($hostID, $backupNum);
                my ($broj) = $sth->{backups_broj}->fetchrow_array();
@@ -256,7 +256,7 @@ sub found_in_db {
        my @param = ($shareID,$path,$name,$date,$size);
        $sth->{file_in_db}->execute(@param);
        my ($rows) = $sth->{file_in_db}->fetchrow_array();
-       print STDERR ( $rows ? '+' : '-' ), join(" ",@param), "\n";
+#      print STDERR ( $rows ? '+' : '-' ), join(" ",@param), "\n";
        return $rows;
 }
 
@@ -298,7 +298,7 @@ sub recurseDir($$$$$$$$) {
 
                if (! $beenThere->{$key} && ! found_in_db(@data)) {
                        $sth->{'insert_files'}->execute(@data);
-                       print STDERR "$key\n";
+#                      print STDERR "$key\n";
                        if ($filesInBackup->{$path_key}->{'type'} == BPC_FTYPE_DIR) {
                                $new_dirs++;
                        } else {