comment all debuglog calls

This commit is contained in:
<bdauvergne@entrouvert.com> 1207838253 +0200 0001-01-01 00:00:00 +00:00
parent 75d1cd72d9
commit 1fa90fe001
7 changed files with 14 additions and 11 deletions

View File

@ -18,13 +18,13 @@ class LassoSPKitAutoPersistentSession extends LassoSPKitDummySession {
function findFederation($nameID) {
$federation = null;
if ($nameID) {
lassospkit_debuglog("looking for session using nameID from profile: $nameID");
#lassospkit_debuglog("looking for session using nameID from profile: $nameID");
$federation = $this->storage->get($nameID);
}
if (! $federation) {
$userID = LassoSPKitUtilsSession::getUserID();
if ($userID) {
lassospkit_debuglog("looking for session using userID: $userID");
#lassospkit_debuglog("looking for session using userID: $userID");
$federation = $this->storage->get(md5($userID));
}
}
@ -32,13 +32,13 @@ class LassoSPKitAutoPersistentSession extends LassoSPKitDummySession {
$nameIDs = LassoSPKitUtilsSession::getNameID();
if (is_array($nameIDs)) {
foreach (LassoSPKitUtilsSession::getNameID() as $nameID) {
lassospkit_debuglog("looking for session using nameID in session: $userID");
#lassospkit_debuglog("looking for session using nameID in session: $userID");
$federation = $this->storage->get($nameID);
}
}
}
if ($federation == null) {
lassospkit_debuglog('did not found any session file...');
#lassospkit_debuglog('did not found any session file...');
return 0;
}
$this->explodeFederation($federation);

View File

@ -51,7 +51,7 @@ class LassoSPKitFileStore implements LassoSPKitStore {
}
function debug($ret, $mesg) {
if ($ret === FALSE) {
lassospkit_debuglog("SPKit File Storage: " . $mesg);
#lassospkit_debuglog("SPKit File Storage: " . $mesg);
}
}
}

View File

@ -16,7 +16,7 @@ class LassoSPKitGenericSession {
header("Location: $url");
}
function doResponse($mimeType, $content) {
lassospkit_debuglog("Renvoi la réponse de type $mimeType et contenu $content");
#lassospkit_debuglog("Renvoi la réponse de type $mimeType et contenu $content");
header("Content-type: $mimeType");
echo $content;
}
@ -62,7 +62,7 @@ class LassoSPKitGenericSession {
function explodeFederationBlob($blob) {
$federation = @unserialize($blob);
if ($federation === FALSE) {
lassospkit_debuglog("LassoSPKitGenericSession: cannot deserialize the federation blob");
#lassospkit_debuglog("LassoSPKitGenericSession: cannot deserialize the federation blob");
return 0;
}
$this->explodeFederation($federation);

View File

@ -17,7 +17,7 @@ class LassoSPKitHelper {
$profile->setSessionFromDump($sessionDump);
}
if ($identityDump) {
lassospkit_debuglog("load dump " . $identityDump);
#lassospkit_debuglog("load dump " . $identityDump);
$profile->setIdentityFromDump($identityDump);
}
}

View File

@ -47,7 +47,7 @@ class LassoSPKitSaml2 extends LassoSPKitSAMLCommon {
'isPassive' => FALSE);
$params = array_merge($default_params, $params);
extract($params);
lassospkit_debuglog("Params isPassive: $isPassive allowCreate: $allowCreate format: $nameIDFormat");
#lassospkit_debuglog("Params isPassive: $isPassive allowCreate: $allowCreate format: $nameIDFormat");
$login = null;
return parent::ssoCommon($login, $remoteID, $method, $isConsentObtained, $forceAuthn, $isPassive, array('nameIDFormat'=>$nameIDFormat, 'allowCreate' => $allowCreate));
}

View File

@ -60,7 +60,7 @@ class LassoSPKitSAMLCommon {
&& ! $ret = $server->addProvider(LASSO_PROVIDER_ROLE_IDP
,$idpmeta,null, null);
if (! $ok) {
lassospkit_debuglog("Erreur création serveur: Ret=$ret Msg=" . strError($ret));
#lassospkit_debuglog("Erreur création serveur: Ret=$ret Msg=" . strError($ret));
return 0;
} else {
$this->server = $server;
@ -69,7 +69,7 @@ class LassoSPKitSAMLCommon {
}
public static function checkFile($file) {
if (! file_exists($file)) {
lassospkit_debuglog("File " . $file . " is absent, can't construct server object");
#lassospkit_debuglog("File " . $file . " is absent, can't construct server object");
return 0;
}
return 1;

View File

@ -4,6 +4,7 @@ require_once("lassospkit_datadir.inc.php");
require_once("lassospkit_session_file.inc.php");
require_once("lassospkit_session_php.inc.php");
require_once("lassospkit_session_memcache.inc.php");
require_once("lassospkit_debug.inc.php");
/** This object encapsulate the communication between the frontend and the
backend of the LassoSPkit.
@ -76,6 +77,7 @@ class LassoSPKitUtilsSession {
# $content = LassoSPKitSessionFile::retrieve($this, self::$timeout);
# }
$content = self::$storage->retrieve($this, self::$timeout);
#lassospkit_debuglog("Session construct $content");
if ($content) {
$t = @unserialize($content);
if ($t && is_array($t)) {
@ -97,6 +99,7 @@ class LassoSPKitUtilsSession {
}
$content = serialize($this->vars);
self::$storage->store($this, $content);
#lassospkit_debuglog("Session store $content");
# if (self::$use_session) {
# LassoSPKitSessionPHP::store($this, $content);
# } else {