Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redirect fails silently - need debug messages #13

Open
perplexes opened this issue Aug 19, 2010 · 4 comments
Open

Redirect fails silently - need debug messages #13

perplexes opened this issue Aug 19, 2010 · 4 comments
Labels

Comments

@perplexes
Copy link

Howdy. We just had a big debugging session centered around redirects, and it turned out that they were redirecting from non-www to a www.domain URL, so spidr silently failed, finding that it was a different host, which is true, but not intuitive.

May we suggest that there be an option to include a logger and logger level, then you could log "page (url) prevented by host filter". That would be super duper nice.

@watzon
Copy link

watzon commented Jun 26, 2019

Giving an option to follow redirects as suggested in #56 would also solve this. I agree a logger is in order though.

@postmodern
Copy link
Owner

Logging is a good idea. What about also adding a callback for URLs that get filtered out?

@watzon
Copy link

watzon commented Oct 25, 2019

Not a bad idea @postmodern

@postmodern
Copy link
Owner

@perplexes I'm just curious how you were invoking spidr? If you used Spidr.host then it would only spider that hostname, none of the other sub-domains. Coming in 0.7.0, the Spidr.domain method will allow one to spider a domain (starting at http://#{domain}/) along with any of it's sub-domains.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants