@@ -196,7 +196,7 @@ public function matchIdentifiableAttributes()
196
196
// @todo Check if IDP gives identifiable attributes AT ALL (should be at least one!). Otherwise throw error back to IDP
197
197
$ count = 0 ;
198
198
while ($ row = $ stmt ->fetch (PDO ::FETCH_ASSOC )) {
199
- SimpleSAML_Logger::stats ('AccountLinker: Checking for attribute \'' .$ row ['name ' ].'\'' );
199
+ SimpleSAML_Logger::debug ('AccountLinker: Checking for attribute \'' .$ row ['name ' ].'\'' );
200
200
if (isset ($ this ->_attributes [$ row ['name ' ]])) {
201
201
$ count ++;
202
202
//$stmt2 = $dbh->prepare("SELECT a.account_id, a.attributeproperty_id
@@ -213,17 +213,17 @@ public function matchIdentifiableAttributes()
213
213
$ stmt3 = $ dbh ->prepare ("SELECT name FROM attributeproperties WHERE attributeproperty_id=:attribute_id " );
214
214
$ stmt3 ->execute (array (':attribute_id ' => $ return [1 ]));
215
215
$ attribute_name = $ stmt3 ->fetchColumn ();
216
- SimpleSAML_Logger::stats ('AccountLinker: Found match on attribute \'' .$ attribute_name .'\' for account id ' . $ return [0 ]);
216
+ SimpleSAML_Logger::debug ('AccountLinker: Found match on attribute \'' .$ attribute_name .'\' for account id ' . $ return [0 ]);
217
217
$ this ->_accountId = $ return [0 ];
218
218
return $ this ->_accountId ;
219
219
}
220
220
}
221
- SimpleSAML_Logger::stats ('AccountLinker: Attribute \'' .$ row ['name ' ].'\' not found in metadata/datastore ' );
221
+ SimpleSAML_Logger::debug ('AccountLinker: Attribute \'' .$ row ['name ' ].'\' not found in metadata/datastore ' );
222
222
}
223
223
224
224
if ($ count === 0 ) {
225
225
$ error = 'Could not find any of the attributes to determine who you are ' ;
226
- SimpleSAML_Logger::stats ('AccountLinker: EXCEPTION ' .$ error );
226
+ SimpleSAML_Logger::debug ('AccountLinker: EXCEPTION ' .$ error );
227
227
#throw new Exception('AccountLinking '.$error );
228
228
$ this ->_handleException ();
229
229
}
@@ -333,14 +333,14 @@ public function saveAttributes()
333
333
$ accountId = $ this ->_getAccountId ();
334
334
foreach ($ insertValues as $ attributePropertyId => $ value ) {
335
335
if (count ($ value ) === 1 ) {
336
- SimpleSAML_Logger::stats ('AccountLinker: Inserting ' .$ attributeMapping [$ attributePropertyId ].' => \'' .$ value [0 ] . '\'' );
336
+ SimpleSAML_Logger::debug ('AccountLinker: Inserting ' .$ attributeMapping [$ attributePropertyId ].' => \'' .$ value [0 ] . '\'' );
337
337
$ query .= "( " .$ accountId .", "
338
338
.$ attributePropertyId .", "
339
339
.$ dbh ->quote ($ value [0 ])."), " ;
340
340
} else {
341
341
// multivalue attribute
342
342
foreach ($ value as $ val ) {
343
- SimpleSAML_Logger::stats ('AccountLinker: Inserting ' .$ attributeMapping [$ attributePropertyId ].' => \'' .$ val .'\'' );
343
+ SimpleSAML_Logger::debug ('AccountLinker: Inserting ' .$ attributeMapping [$ attributePropertyId ].' => \'' .$ val .'\'' );
344
344
$ query .= "( " .$ accountId .", "
345
345
.$ attributePropertyId .", "
346
346
.$ dbh ->quote ($ val )."), " ;
@@ -412,7 +412,7 @@ public function saveSpEntityId()
412
412
':user_agent ' => $ _SERVER ['HTTP_USER_AGENT ' ] ?? ''
413
413
));
414
414
415
- SimpleSAML_Logger::stats ('AccountLinker: Returning user_id ' .$ userId );
415
+ SimpleSAML_Logger::debug ('AccountLinker: Returning user_id ' .$ userId );
416
416
return $ userId ;
417
417
}
418
418
@@ -424,7 +424,7 @@ public function saveSpEntityId()
424
424
*/
425
425
public function addIdentifiableAttributes ()
426
426
{
427
- SimpleSAML_Logger::stats ('AccountLinker: adding default id attributes for entityid_id: ' . $ this ->_getEntityidId ());
427
+ SimpleSAML_Logger::debug ('AccountLinker: adding default id attributes for entityid_id: ' . $ this ->_getEntityidId ());
428
428
$ dbh = $ this ->_getStore ();
429
429
$ stmt = $ dbh ->prepare ("INSERT INTO idattributes (attribute_id, entity_id, aorder) VALUES (:attribute_id,:entity_id, :aorder) " );
430
430
$ stmt ->execute (array (
@@ -457,7 +457,7 @@ private function _handleException()
457
457
'idp_entityID ' => $ this ->getEntityId ()
458
458
);
459
459
$ queryString = $ this ->_ehsURL .'? ' .http_build_query ($ data );
460
- SimpleSAML_Logger::stats ('TAL EHS: ' .$ queryString );
460
+ SimpleSAML_Logger::debug ('TAL EHS: ' .$ queryString );
461
461
SimpleSAML_Utilities::redirect ($ queryString );
462
462
}
463
463
0 commit comments