1
0
mirror of https://github.com/venthur/blag.git synced 2025-11-25 20:52:43 +00:00

improve logging for urlsplit

This commit is contained in:
Bastian Venthur
2021-01-31 13:29:40 +01:00
parent f376352e90
commit 87f571bb49

View File

@@ -83,7 +83,9 @@ class MarkdownLinkTreeprocessor(Treeprocessor):
def convert(self, url):
scheme, netloc, path, query, fragment = urlsplit(url)
#logger.debug(f'{url} -> scheme: {scheme} netloc: {netloc} path: {path} query: {query} fragment: {fragment}')
logger.debug(
f'{url}: {scheme=} {netloc=} {path=} {query=} {fragment=}'
)
if (scheme or netloc or not path):
return url
if path.endswith('.md'):