7100: add debug logging for the bug investigation

svn: r23247
This commit is contained in:
Vassilii Khachaturov 2013-10-03 23:11:04 +00:00
parent 905e6a5993
commit b716a7f298

View File

@ -1618,6 +1618,8 @@ class Date(object):
for adjusted,original in d,m,y: for adjusted,original in d,m,y:
if adjusted != original and not(original == 0 and adjusted == 1): 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 {}". raise DateError("Invalid day/month/year {} passed in value {}".
format(original, value)) format(original, value))