From 02d798888d644a53ef7a00977c1341f06de9958d Mon Sep 17 00:00:00 2001
From: Olav Morken <olav.morken@uninett.no>
Date: Thu, 17 Dec 2009 08:04:50 +0000
Subject: [PATCH] Auth_State: Add debug log entries.

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

diff --git a/lib/SimpleSAML/Auth/State.php b/lib/SimpleSAML/Auth/State.php
index 1fc117c6d..922c0c514 100644
--- a/lib/SimpleSAML/Auth/State.php
+++ b/lib/SimpleSAML/Auth/State.php
@@ -117,6 +117,8 @@ class SimpleSAML_Auth_State {
 		$session = SimpleSAML_Session::getInstance();
 		$session->setData('SimpleSAML_Auth_State', $id, $serializedState, 60*60);
 
+		SimpleSAML_Logger::debug('Saved state: ' . var_export($return, TRUE));
+
 		return $return;
 	}
 
@@ -136,6 +138,8 @@ class SimpleSAML_Auth_State {
 		assert('is_string($id)');
 		assert('is_string($stage)');
 
+		SimpleSAML_Logger::debug('Loading state: ' . var_export($id, TRUE));
+
 		$tmp = explode(':', $id, 2);
 		$id = $tmp[0];
 		if (count($tmp) === 2) {
@@ -200,6 +204,8 @@ class SimpleSAML_Auth_State {
 			return;
 		}
 
+		SimpleSAML_Logger::debug('Deleting state: ' . var_export($state[self::ID], TRUE));
+
 		$session = SimpleSAML_Session::getInstance();
 		$session->deleteData('SimpleSAML_Auth_State', $state[self::ID]);
 	}
-- 
GitLab