Explorar o código

Add debug log when downloading files

Nick Barrett %!s(int64=2) %!d(string=hai) anos
pai
achega
057ac41e31
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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, ""