Browse Source

Add debug log when downloading files

Nick Barrett 2 years ago
parent
commit
057ac41e31
1 changed files with 1 additions and 0 deletions
  1. 1 0
      mautrix_instagram/portal.py

+ 1 - 0
mautrix_instagram/portal.py

@@ -894,6 +894,7 @@ class Portal(DBPortal, BasePortal):
                         f"{url} was too large ({length} > {self.matrix.media_config.upload_size})"
                     )
                     raise ValueError("Attachment not available: too large")
+                self.log.debug(f"Downloading file with length {length}: {url}")
                 data = await resp.read()
                 if not data:
                     return None, ""