Skip to content
Snippets Groups Projects
Commit 5fba3f92 authored by Olav Morken's avatar Olav Morken
Browse files

Log a warning when metadata entries are expired.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2720 44740490-163a-0410-bde0-09ae8108e29a
parent ea759d53
No related branches found
No related tags found
No related merge requests found
...@@ -146,6 +146,10 @@ class SimpleSAML_Metadata_MetaDataStorageHandler { ...@@ -146,6 +146,10 @@ class SimpleSAML_Metadata_MetaDataStorageHandler {
if (array_key_exists('expire', $le)) { if (array_key_exists('expire', $le)) {
if ($le['expire'] < time()) { if ($le['expire'] < time()) {
unset($srcList[$key]); unset($srcList[$key]);
SimpleSAML_Logger::warning("Dropping metadata entity " .
var_export($key,true) . ", expired " .
SimpleSAML_Utilities::generateTimestamp($le['expire']) .
".");
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment