mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
Only log if we've removed media
This commit is contained in:
parent
75e67b9ee4
commit
d5694ac5fa
@ -365,6 +365,7 @@ class PreviewUrlResource(Resource):
|
|||||||
|
|
||||||
yield self.store.delete_url_cache(removed_media)
|
yield self.store.delete_url_cache(removed_media)
|
||||||
|
|
||||||
|
if removed_media:
|
||||||
logger.info("Deleted %d entries from url cache", len(removed_media))
|
logger.info("Deleted %d entries from url cache", len(removed_media))
|
||||||
|
|
||||||
# Now we delete old images associated with the url cache.
|
# Now we delete old images associated with the url cache.
|
||||||
@ -412,6 +413,7 @@ class PreviewUrlResource(Resource):
|
|||||||
|
|
||||||
yield self.store.delete_url_cache_media(removed_media)
|
yield self.store.delete_url_cache_media(removed_media)
|
||||||
|
|
||||||
|
if removed_media:
|
||||||
logger.info("Deleted %d media from url cache", len(removed_media))
|
logger.info("Deleted %d media from url cache", len(removed_media))
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user