chiark / gitweb /
Remove a debugging print
[ypp-sc-tools.web-live.git] / yarrg / commod-email-processor
index bf42c0d65ef4b8344f29963de36080b35f664535..de68fbad98250c24cb43199cb1316e7dc4f79a0f 100755 (executable)
@@ -117,7 +117,9 @@ sub main () {
     db_setocean($md{'ocean'});
     my $dbfn= db_filename();
     (stat $dbfn) or die "stat database $dbfn failed $!\n";
+    db_writer();
     db_connect();
+    db_onconflict(sub { print STDERR "temporary failure: @_\n"; exit 75; });
 
     my ($islandid) = $dbh->selectrow_array(
               "SELECT islands.islandid
@@ -206,7 +208,7 @@ sub main () {
 
     pipethrough_run_finish($pt, 'gunzip <$deduped_tsv.gz');
 
-    print "\n";
+#    print "\n";
     $dbh->commit();
 
     # select * from ((buy natural join commods) natural join stalls) natural join islands;