From bce862ae2003fc1fc8ddd995b05929e34496736d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20=C3=85kre=20Solberg?= <andreas.solberg@uninett.no>
Date: Thu, 26 Feb 2009 13:17:52 +0000
Subject: [PATCH] Log consent

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1332 44740490-163a-0410-bde0-09ae8108e29a
---
 modules/consent/lib/Auth/Process/Consent.php | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/modules/consent/lib/Auth/Process/Consent.php b/modules/consent/lib/Auth/Process/Consent.php
index 08df9f13d..a09aea579 100644
--- a/modules/consent/lib/Auth/Process/Consent.php
+++ b/modules/consent/lib/Auth/Process/Consent.php
@@ -160,15 +160,21 @@ class sspmod_consent_Auth_Process_Consent extends SimpleSAML_Auth_ProcessingFilt
 
 			SimpleSAML_Logger::debug('Consent - hasConsent() : [' . $userId . '|' . $targetedId . '|' .  $attributeSet . ']');
 			if ($this->store->hasConsent($userId, $targetedId, $attributeSet)) {
+				
+				SimpleSAML_Logger::stats('consent found');
+				
 				/* Consent already given. */
 				return;
 			}
+			SimpleSAML_Logger::stats('consent notfound');
 
 			$state['consent:store'] = $this->store;
 			$state['consent:store.userId'] = $userId;
 			$state['consent:store.destination'] = $targetedId;
 			$state['consent:store.attributeSet'] = $attributeSet;
 			
+		} else {
+			SimpleSAML_Logger::stats('consent nostorage');
 		}
 
 		$state['consent:focus'] = $this->focus;
-- 
GitLab