Skip to content

Commit

Permalink
chore: GH-6 GH-4 logging exceptions missed in previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
bhodrolok committed Jul 2, 2023
1 parent ced6cd7 commit a01b26a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rupantar/sohoj/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def md_to_str(md_file_path):
posts = []
notes_path = path.join(config.content_path, 'notes')
for each_note_md in glob( path.join(notes_path, "*.md") ):
print(each_note_md)
logger.debug(each_note_md)
post_detail, md = parse_md(each_note_md)
# Create blog pages
if (post_detail is not None):
Expand All @@ -191,7 +191,7 @@ def md_to_str(md_file_path):
logger.exception("Error creating other pages: %s", str(err))

except FileNotFoundError:
print(f"Error: {config_file_path} not found in {project_folder} directory. Make sure that both the file and directory exists.")
logger.exception("Error: %s not found in %s directory. Make sure that both the file and directory exists.", config_file_path, project_folder)

except Exception as err:
logger.exception("Error: Failed to read %s: %s", config_file_path, str(err))
Expand Down

0 comments on commit a01b26a

Please sign in to comment.