Standards
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   Web Development Archives Mailing Lists Standards

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Web Development Archives Sponsor:
  #1  
Old July 3rd, 2008, 05:10 PM
Olivier Thereaux via cvs-syncmail
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
perl/modules/W3C/LinkChecker/bin checklink,4.109,4.110

Update of /
In directory hutz:/tmp/cvs-serv3654

Modified Files:
checklink
Log Message:
improve debug output in verbose mode. Patch courtesy of Michael Ernst

Index: checklink

RCS file: /,v
retrieving revision 4.109
retrieving revision 4.110
diff -u -d -r4.109 -r4.110
checklink 4 May 2008 16:59:22 -0000 4.109
checklink 3 Jul 2008 19:46:35 -0000 4.110
@@ -134,7 +134,7 @@
}

#
-# Checks whether we're allowed to retrieve the document based on it's IP
+# Checks whether we're allowed to retrieve the document based on its IP
# address. Takes an URI object and returns a HTTP::Response containing the
# appropriate status and error message if the IP was disallowed, 0
# otherwise. URIs without hostname or IP address are always allowed,
@@ -363,6 +363,7 @@
my %redirects;
# Count of the number of documents checked
my $doc_count = 0;
+
# Time stamp
my $timestamp = &get_timestamp();

@@ -910,6 +911,8 @@
# Check links


+ &hprintf("Recording all the links found: %d\n", scalar (keys %{$p->{Links}}))
+ if (${Verbose});
my %links;
# Record all the links found
while (my ($link, $lines) = each(%{$p->{Links}})) {
@@ -943,6 +946,8 @@
}

# Build the list of broken URI's
+ &hprintf("Checking %d links to build list of broken URI's\n", scalar (keys %links))
+ if (${Verbose});
my %broken;
while (my ($u, $ulinks) = each(%links)) {

@@ -1031,7 +1036,7 @@
if (${HTML}) {
if (!${Command_Line}) {
if ($doc_count == ${Max_Documents}) {
- print("<hr />\n<p><strong>Maximum number of documents reached!</strong></p>\n");
+ print("<hr />\n<p><strong>Maximum number of documents (${Max_Documents}) reached!</strong></p>\n");
}
if ($doc_count >= ${Max_Documents}) {
$doc_count++;
@@ -1336,6 +1341,9 @@
{
my ($uri, $base_uri, $response, $links, $rec_needs_links) = @_;

+ print("parse_document($uri, $base_uri, , $links, $rec_needs_links)\n")
+ if ${Verbose};
+
my $p;

if (defined($results{$uri}{parsing})) {

Reply With Quote
Reply

Viewing: Web Development Archives Mailing Lists Standards > perl/modules/W3C/LinkChecker/bin checklink,4.109,4.110


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway