diff --git a/lib/SimpleSAML/Metadata/SAMLParser.php b/lib/SimpleSAML/Metadata/SAMLParser.php
index b8f082c116b5151b38358082001e7bea61021ff2..dfcd11dddcc3788fe455046e4d42455130f906f9 100644
--- a/lib/SimpleSAML/Metadata/SAMLParser.php
+++ b/lib/SimpleSAML/Metadata/SAMLParser.php
@@ -331,6 +331,8 @@ class SimpleSAML_Metadata_SAMLParser {
 				try {
 					$entitiesValidator = new SimpleSAML_XML_Validator($element, 'ID');
 				} catch(Exception $e) {
+					SimpleSAML_Logger::warning('SAMLParser: Error creating XML Signature validator for XML document: ' . 
+						$e->getMessage());
 					$entitiesValidator = NULL;
 				}
 			}