From 494b31f37b8fb7f040f8c5b5363032902cef5f27 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20=C3=85kre=20Solberg?= <andreas.solberg@uninett.no>
Date: Mon, 4 Feb 2008 08:33:52 +0000
Subject: [PATCH] Added extra debug logging, and changed the
 processuahtnrequest error to use the new fataerror() message

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@243 44740490-163a-0410-bde0-09ae8108e29a
---
 www/shib13/idp/SSOService.php | 13 +++----------
 1 file changed, 3 insertions(+), 10 deletions(-)

diff --git a/www/shib13/idp/SSOService.php b/www/shib13/idp/SSOService.php
index 323806a29..71ac5b1a8 100644
--- a/www/shib13/idp/SSOService.php
+++ b/www/shib13/idp/SSOService.php
@@ -64,18 +64,11 @@ if (isset($_GET['shire'])) {
 			$requestcache['RelayState'] = $relaystate;
 			
 		$session->setAuthnRequest('shib13', $requestid, $requestcache);
-
+		
+		$logger->log(LOG_INFO, $session->getTrackID(), 'Shib1.3', 'IdP.SSOService', 'EVENT', $requestid, 'Got incomming Shib authnRequest');
 	
 	} catch(Exception $exception) {
-		
-		$et = new SimpleSAML_XHTML_Template($config, 'error.php');
-		
-		$et->data['header'] = 'Error getting incomming request';
-		$et->data['message'] = 'Something bad happened when simpleSAML got the incomming authentication request';	
-		$et->data['e'] = $exception;
-		
-		$et->show();
-		exit(0);
+		SimpleSAML_Utilities::fatalError($session->getTrackID(), 'PROCESSAUTHNREQUEST');
 	}
 
 
-- 
GitLab