Skip to content

Commit

Permalink
update debug
Browse files Browse the repository at this point in the history
  • Loading branch information
TOsmanov committed Jul 19, 2024
1 parent 2d91a1f commit 5203691
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions foliant/preprocessors/includes.py
Original file line number Diff line number Diff line change
Expand Up @@ -966,7 +966,7 @@ def process_includes(

donor_md_path = included_file_path.as_posix()

self.logger.debug(f'Set the repo URL of the included file to {recipient_md_path}: {donor_md_path}')
self.logger.debug(f'Set the repo URL of the included file to {recipient_md_path}: {donor_md_path} (1)')

if included_file_path.name.startswith('^'):
included_file_path = self._find_file(
Expand Down Expand Up @@ -1020,7 +1020,7 @@ def process_includes(

donor_md_path = f"{self.src_dir}/{included_file_path.relative_to(os.getcwd()).relative_to(self.working_dir).as_posix()}"

self.logger.debug(f'Set the path of the included file to {recipient_md_path}: {donor_md_path}')
self.logger.debug(f'Set the path of the included file to {recipient_md_path}: {donor_md_path} (2)')

else: # if body is missing
self.logger.debug('Using the new syntax rules')
Expand Down Expand Up @@ -1060,7 +1060,7 @@ def process_includes(

donor_md_path = include_link

self.logger.debug(f'Set the link of the included file to {recipient_md_path}: {donor_md_path}')
self.logger.debug(f'Set the link of the included file to {recipient_md_path}: {donor_md_path} (3)')

elif options.get('url'):
self.logger.debug('File to get by URL referenced')
Expand Down Expand Up @@ -1090,7 +1090,7 @@ def process_includes(

donor_md_path = options['url']

self.logger.debug(f'Set the URL of the included file to {recipient_md_path}: {donor_md_path}')
self.logger.debug(f'Set the URL of the included file to {recipient_md_path}: {donor_md_path} (4)')

elif options.get('src'):
self.logger.debug('Local file referenced')
Expand All @@ -1105,7 +1105,7 @@ def process_includes(
else:
donor_md_path = _path.as_posix()

self.logger.debug(f'Set the path of the included file to {recipient_md_path}: {donor_md_path}')
self.logger.debug(f'Set the path of the included file to {recipient_md_path}: {donor_md_path} (5)')

if options.get('project_root'):
current_project_root_path = (
Expand Down

0 comments on commit 5203691

Please sign in to comment.