adding some debug statments that i've been using
[fsfdrupalauth.git] / lib / Auth / Source / FSFDrupalAuth.php
index 69f60b473f2b26e4d9550c1bb477822c958bd9f7..1e80d51358e2cfc37596cf61955aeba65c7ea5e8 100644 (file)
@@ -371,6 +371,9 @@ class FSFDrupalAuth extends \SimpleSAML\Module\core\Auth\UserPassBase
 
                $eligible = false;
 
+               Logger::debug('fsfdrupalauth:'.$this->authId.
+                       ': start date: '.$nomination_process_start_date. " end date: ".$nomination_process_end_date);
+
                $start_date_obj = new \DateTime($nomination_process_start_date);
                $end_date_obj = new \DateTime($nomination_process_end_date);
 
@@ -416,6 +419,9 @@ class FSFDrupalAuth extends \SimpleSAML\Module\core\Auth\UserPassBase
                $eligible = false;
                $total = 0;
 
+               Logger::debug('fsfdrupalauth:'.$this->authId.
+                       ': start date: '.$discussion_process_start_date. " end date: ".$discussion_process_end_date);
+
                $start_date_obj = new \DateTime($discussion_process_start_date);
                $end_date_obj = new \DateTime($discussion_process_end_date);
 
@@ -430,6 +436,9 @@ class FSFDrupalAuth extends \SimpleSAML\Module\core\Auth\UserPassBase
                        }
                }
 
+               Logger::debug('fsfdrupalauth:'.$this->authId.
+                       ': total amount: $'.$total);
+
                if ($total >= $this->discussion_process_donation_amount) {
                        return true;
                } else {