From f11b0e0b9368d74078ac1d1b96882b8108849710 Mon Sep 17 00:00:00 2001 From: s3lph Date: Sun, 9 Sep 2018 03:33:09 +0200 Subject: [PATCH] Even more debug output. --- matemat/db/facade.py | 1 + 1 file changed, 1 insertion(+) diff --git a/matemat/db/facade.py b/matemat/db/facade.py index 80020fd..2ceef8d 100644 --- a/matemat/db/facade.py +++ b/matemat/db/facade.py @@ -580,6 +580,7 @@ class MatematDatabase(object): def check_receipt_due(self, user: User, logger: logging.Logger) -> bool: if not isinstance(user.receipt_pref, ReceiptPreference): 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: logger.debug('Receipt preference None or no e-mail.') return False