From b716a7f2989341104593e82b546c1f16821f1968 Mon Sep 17 00:00:00 2001 From: Vassilii Khachaturov Date: Thu, 3 Oct 2013 23:11:04 +0000 Subject: [PATCH] 7100: add debug logging for the bug investigation svn: r23247 --- gramps/gen/lib/date.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gramps/gen/lib/date.py b/gramps/gen/lib/date.py index e61caba1d..277d09a46 100644 --- a/gramps/gen/lib/date.py +++ b/gramps/gen/lib/date.py @@ -1618,6 +1618,8 @@ class Date(object): for adjusted,original in d,m,y: if adjusted != original and not(original == 0 and adjusted == 1): + log.debug("Sanity check failed - self: {}, sanity: {}".format( + self.to_struct(), sanity.to_struct())) raise DateError("Invalid day/month/year {} passed in value {}". format(original, value))