Skip to content

Commit 45d7039

Browse files
authored
Only log the extra messages with the new setting
1 parent 6292a9a commit 45d7039

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tubesync/sync/models.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1174,7 +1174,8 @@ def reduce_data(self):
11741174

11751175
@property
11761176
def loaded_metadata(self):
1177-
self.reduce_data
1177+
if getattr(settings, 'SHRINK_OLD_MEDIA_METADATA', False):
1178+
self.reduce_data
11781179
try:
11791180
data = json.loads(self.metadata)
11801181
if not isinstance(data, dict):

0 commit comments

Comments
 (0)