From 13bef6756e9a5fd95beba6efeb7c1d023238f5a7 Mon Sep 17 00:00:00 2001 From: James Winter Date: Wed, 12 Aug 2009 11:24:30 -0400 Subject: [PATCH] Modified write in fines.pl to silence message unless verbose is set. Signed-off-by: Galen Charlton --- misc/cronjobs/fines.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/cronjobs/fines.pl b/misc/cronjobs/fines.pl index 65bfb7ab58..bcc98e8e85 100755 --- a/misc/cronjobs/fines.pl +++ b/misc/cronjobs/fines.pl @@ -112,7 +112,7 @@ if (!-d $fldir) { $filename = $dbname; $filename =~ s/\W//; $filename = $fldir . '/'. $filename . '_' . $today_iso . ".log"; -print "writing to $filename\n"; +print "writing to $filename\n" if $verbose; open (FILE, ">$filename") or die "Cannot write file $filename: $!"; print FILE join $delim, (@borrower_fields, @item_fields, @other_fields); print FILE "\n"; -- 2.39.5