]> git.parisson.com Git - telemeta.git/commitdiff
add path to log msg
authorGuillaume Pellerin <guillaume.pellerin@free.fr>
Wed, 20 Mar 2024 09:26:05 +0000 (10:26 +0100)
committerGuillaume Pellerin <guillaume.pellerin@free.fr>
Wed, 20 Mar 2024 09:26:05 +0000 (10:26 +0100)
telemeta/management/commands/telemeta-check-items-paths.py

index 829a02b7b144b18e2077ae06966b16f2bccd5e9e..91459793ff2962acffb5cda212c142a1199f632e 100644 (file)
@@ -70,6 +70,6 @@ class Command(BaseCommand):
 
         for item in MediaItem.objects.all():
             if not os.path.exists(self.media_root + os.sep + item.file.path):
-                msg = ' : item file does not exists'
-                self.logger.info(item.public_id, msg)
+                msg = ' : file does not exist on disk'
+                self.logger.info(item.public_id, item.file.path, msg)