mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-07 13:32:21 -04:00
Log which files we saved attachments to in the media_repository
This commit is contained in:
parent
657488113e
commit
32019c9897
3 changed files with 11 additions and 0 deletions
|
@ -16,6 +16,10 @@
|
|||
import PIL.Image as Image
|
||||
from io import BytesIO
|
||||
|
||||
import logging
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class Thumbnailer(object):
|
||||
|
||||
|
@ -86,4 +90,5 @@ class Thumbnailer(object):
|
|||
output_bytes = output_bytes_io.getvalue()
|
||||
with open(output_path, "wb") as output_file:
|
||||
output_file.write(output_bytes)
|
||||
logger.info("Stored thumbnail in file %r", output_path)
|
||||
return len(output_bytes)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue