Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Log what URLs fail to be resolved. #274

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

Closed
wants to merge 1 commit into from

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented Jul 30, 2017

This makes debugging such failures much easier.

This makes debugging such failures much easier.
@anntzer anntzer force-pushed the indicate-failed-url branch from 8742d60 to 85b1017 Compare July 30, 2017 20:44
@@ -336,11 +336,13 @@ def _embed_code_links(app, gallery_conf, gallery_dir):
src_gallery_dir,
relative=True)
else:
doc_resolvers[this_module] = SphinxDocLinkResolver(url,
src_gallery_dir)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what was this before? Just a bunch of extra white space?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a slightly awkward alignment which also made the line longer than 80 characters.

logger.warning("The following HTTP Error has occurred: %d", e.code)
logger.warning(
"HTTP error %d has occured while trying to resolve %s",
e.code, e.filename)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems reasonable to me...I say merge unless anybody objects

@QuLogic
Copy link
Contributor

QuLogic commented Jul 31, 2017

I have a similar change in the last commit of #272.


except HTTPError as e:
logger.warning("The following HTTP Error has occurred: %d", e.code)
logger.warning(
"HTTP error %d has occured while trying to resolve %s",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You mis-corrected the spelling of 'occurred'.

@anntzer
Copy link
Contributor Author

anntzer commented Jul 31, 2017

Closed in favor of #272.

@anntzer anntzer closed this Jul 31, 2017
@anntzer anntzer deleted the indicate-failed-url branch July 31, 2017 01:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants