-
Notifications
You must be signed in to change notification settings - Fork 207
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
Conversation
This makes debugging such failures much easier.
8742d60
to
85b1017
Compare
@@ -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) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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
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", |
There was a problem hiding this comment.
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'.
Closed in favor of #272. |
This makes debugging such failures much easier.