Author: poeml Date: Tue Feb 8 22:19:05 2011 New Revision: 8237 URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain?rev=8237&view=rev Log: mb scan: - As adjunct to r8180 (terse logging), logging messages in the large file check have been silenced (and their formatting improved, while at it) Modified: trunk/tools/scanner.pl Modified: trunk/tools/scanner.pl URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain/trunk/tools/scanner.pl?rev=8237&r1=8236&r2=8237&view=diff ============================================================================== --- trunk/tools/scanner.pl (original) +++ trunk/tools/scanner.pl Tue Feb 8 22:19:05 2011 _at_@ -1412,20 +1412,20 @@ # 307 - same as 302 except different caching behaviour if($code == 301 or $code == 302 or $code == 303 or $code == 307) { if($result->header('location') =~ m{^ftp:.*}) { - print "$identifier: Moved to ftp location, assuming success if followed"; + print localtime(time) . " $identifier: Moved to ftp location, assuming success if followed\n" if $verbose >= 1; goto all_ok; } if($result->header('location') =~ m{^http:.*}) { - print "$identifier: [RECURSE] Moved to other http location, recursing scan..."; + print localtime(time) . " $identifier: [RECURSE] Moved to other http location, recursing scan...\n" if $verbose >= 1; return largefile_check($id, $result->header('location'), $size, $recurse+1); } } if($result->code() == 416) { - print "$identifier: Error: range error: filesize broken for file $url\n" if $verbose >= 1; + print localtime(time) . " $identifier: Error: range error: filesize broken for file $url\n" if $verbose >= 1; } else { - print "$identifier: Error ".$result->code()." occured\n" if $verbose >= 1; + print localtime(time) . " $identifier: Error ".$result->code()." occured\n" if $verbose >= 1; } error: _______________________________________________ mirrorbrain-commits mailing list Archive: http://mirrorbrain.org/archive/mirrorbrain-commits/ Note: To remove yourself from this list, send a mail with the content unsubscribe to the address mirrorbrain-commits-request_at_mirrorbrain.orgReceived on Tue Feb 08 2011 - 21:19:09 GMT
This archive was generated by hypermail 2.3.0 : Mon Feb 20 2012 - 23:47:04 GMT