From 32019c98971fae775fe79bb30615899e7f6b09d4 Mon Sep 17 00:00:00 2001 From: Mark Haines Date: Tue, 10 Jan 2017 14:19:50 +0000 Subject: Log which files we saved attachments to in the media_repository --- synapse/rest/media/v1/thumbnailer.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'synapse/rest/media/v1/thumbnailer.py') diff --git a/synapse/rest/media/v1/thumbnailer.py b/synapse/rest/media/v1/thumbnailer.py index 0bb3676844..3868d4f65f 100644 --- a/synapse/rest/media/v1/thumbnailer.py +++ b/synapse/rest/media/v1/thumbnailer.py @@ -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) -- cgit 1.5.1