From 8b1170a82b70121ce5245e53ac98e5a97b302814 Mon Sep 17 00:00:00 2001 From: Virgil Dupras Date: Thu, 2 Jun 2011 10:14:08 -0400 Subject: [PATCH] When an exif tag can't be read, log the event as 'info' rather than 'warning'. We don't want to fill the user's console with these messages, which will be very common. --- core_pe/matchexif.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core_pe/matchexif.py b/core_pe/matchexif.py index 399871f9..21acdde8 100644 --- a/core_pe/matchexif.py +++ b/core_pe/matchexif.py @@ -25,7 +25,7 @@ def getmatches(files, j): timestamp = exifdata['DateTimeOriginal'] timestamp2pic[timestamp].add(picture) except Exception: - logging.warning("Couldn't read EXIF of picture: %s", picture.path) + logging.info("Couldn't read EXIF of picture: %s", picture.path) if '0000:00:00 00:00:00' in timestamp2pic: # very likely false matches del timestamp2pic['0000:00:00 00:00:00'] matches = []