7100: add debug logging for the bug investigation
svn: r23247
This commit is contained in:
parent
905e6a5993
commit
b716a7f298
@ -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))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user