Commit 390ae84c authored by haemmer's avatar haemmer
Browse files

Improved log message when metadata is parsed

parent f776ede5
......@@ -273,13 +273,10 @@ function parseMetadata($metadataFile, $defaultLanguage){
}
// Output result
$infoMsg = "Successfully parsed metadata file ".$metadataFile. "\n";
$infoMsg .= "Added ".count($metadataIDProviders)." IdPs and ".count($metadataSProviders)." SPs.";
if (!isset($supportHideFromDiscoveryEntityCategory) || $supportHideFromDiscoveryEntityCategory){
$infoMsg .= " ".$hiddenIdPs." hidden IdPs were not added.";
} else {
$infoMsg .= ' Potentially hidden IdPs were also added because $supportHideFromDiscoveryEntityCategory is false.';
}
$infoMsg = "Successfully parsed metadata file ".$metadataFile. " ";
$infoMsg .= "(".count($metadataIDProviders)." IdPs, ";
$infoMsg .= " ".count($metadataSProviders)." SPs, ";
$infoMsg .= ($hiddenIdPs > 0) ? $hiddenIdPs." IdPs are hidden)" : "no hidden IdPs)" ;
if (isRunViaCLI()){
echo $infoMsg."\n";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment