diff options
author | Mark Haines <mjark@negativecurvature.net> | 2017-01-10 14:27:55 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-10 14:27:55 +0000 |
commit | 024eb98524bf4328c855c9c37828ab3bed8e7454 (patch) | |
tree | 3d8efc86131758e1251f8a9d751fe704c71e97d5 /synapse/rest/media/v1/thumbnailer.py | |
parent | Merge pull request #1789 from matrix-org/erikj/decouple_presence (diff) | |
parent | Log which files we saved attachments to in the media_repository (diff) | |
download | synapse-024eb98524bf4328c855c9c37828ab3bed8e7454.tar.xz |
Merge pull request #1791 from matrix-org/markjh/file_logging
Log which files we saved attachments to in the media_repository
Diffstat (limited to 'synapse/rest/media/v1/thumbnailer.py')
-rw-r--r-- | synapse/rest/media/v1/thumbnailer.py | 5 |
1 files changed, 5 insertions, 0 deletions
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) |