瀏覽代碼

Add debug log when downloading files

Nick Barrett 2 年之前
父節點
當前提交
057ac41e31
共有 1 個文件被更改,包括 1 次插入0 次删除
  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, ""