forked from s3lph/matemat
Even more debug output.
This commit is contained in:
parent
660969744c
commit
f11b0e0b93
1 changed files with 1 additions and 0 deletions
|
@ -580,6 +580,7 @@ class MatematDatabase(object):
|
||||||
def check_receipt_due(self, user: User, logger: logging.Logger) -> bool:
|
def check_receipt_due(self, user: User, logger: logging.Logger) -> bool:
|
||||||
if not isinstance(user.receipt_pref, ReceiptPreference):
|
if not isinstance(user.receipt_pref, ReceiptPreference):
|
||||||
raise TypeError()
|
raise TypeError()
|
||||||
|
logger.debug('User: "%s", receipt_preference: %s, e-mail: %s.', user.name, user.receipt_pref, user.email)
|
||||||
if user.receipt_pref == ReceiptPreference.NONE or user.email is None:
|
if user.receipt_pref == ReceiptPreference.NONE or user.email is None:
|
||||||
logger.debug('Receipt preference None or no e-mail.')
|
logger.debug('Receipt preference None or no e-mail.')
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Reference in a new issue