improve logging in converter.py

This commit is contained in:
Denis-Cosmin Nutiu 2023-06-05 11:52:23 +03:00
parent a6fe6fd44e
commit 631035090e

View file

@ -58,6 +58,6 @@ class Converter:
file_writer, file_writer,
) )
posts_converted_count += 1 posts_converted_count += 1
self._logger.info(f"Converted {posts_converted_count} posts! 🚀") self._logger.info(f"Converted {posts_converted_count} posts! 🚀")
except StopIteration: except StopIteration:
self._logger.fatal(f"Source path {source_path} does not exist!") self._logger.fatal(f"Source path {source_path} does not exist!")