Skip to content

Commit

Permalink
tweak info messages
Browse files Browse the repository at this point in the history
  • Loading branch information
jgstew committed Sep 25, 2023
1 parent 6ade957 commit 21d60b4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions SharedProcessors/FileGetBase64.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ class FileGetBase64(Processor): # pylint: disable=too-few-public-methods
def main(self):
"""execution starts here"""
file_pathname = self.env.get("file_pathname", self.env.get("pathname", None))

self.output(f"INFO: input file path: {file_pathname}", 3)

file_size_limit = int(self.env.get("file_size_limit", "250"))
if file_pathname:
with open(file_pathname, "rb") as file_io:
Expand Down
4 changes: 2 additions & 2 deletions SharedProcessors/FileImageSvgToPng.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def main(self):
max_pixel_dim = 256
file_pathname = self.env.get("file_pathname", self.env.get("pathname", None))

self.output(f"INFO: input file path: {file_pathname}")
self.output(f"INFO: input file path: {file_pathname}", 3)

# reset file path png:
self.env["file_path_png"] = ""
Expand All @@ -72,7 +72,7 @@ def main(self):
self.convert_svg_to_png(file_pathname, file_path_save, max_pixel_dim)

self.env["file_path_png"] = file_path_save
self.output(f"INFO: output file path: {file_path_save}")
self.output(f"INFO: output file path: {file_path_save}", 4)
else:
self.output(f"WARNING: file does not exist! {file_pathname}", 0)

Expand Down

0 comments on commit 21d60b4

Please sign in to comment.