Skip to content

Commit e11149d

Browse files
Merge pull request #6 from SebastianMunozP/main
Adding log messages to get_image
2 parents 9134b97 + 9d29638 commit e11149d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/models/image_dir.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,12 @@ async def get_image(
9494
)
9595
else:
9696
extra["dir"] = self.dir
97+
LOGGER.info(f"mime_type: {mime_type}")
98+
LOGGER.info(f"timeout: {timeout}")
99+
LOGGER.info(f"extra: {extra}")
100+
LOGGER.info(f"metadata: {metadata}")
101+
LOGGER.info(f"kwargs: {kwargs}")
102+
97103
requested_dir = os.path.join(self.root_dir, extra["dir"])
98104

99105
if not os.path.isdir(requested_dir):
@@ -119,6 +125,7 @@ async def get_image(
119125
if extra.get("ext") is not None:
120126
if extra["ext"] in ["jpg", "jpeg", "png", "gif"]:
121127
ext = extra["ext"]
128+
LOGGER.info(f"ext: {ext}")
122129

123130
# Get max index to handle wraparound
124131
max_index = self._get_greatest_image_index(requested_dir)

0 commit comments

Comments
 (0)