log errors storing persistance

This commit is contained in:
El RIDO
2021-06-16 05:32:45 +02:00
parent 3d9ba10fcb
commit fd08d991fe
3 changed files with 11 additions and 4 deletions

View File

@@ -172,7 +172,9 @@ class TrafficLimiter extends AbstractPersistence
$tl = time();
$result = true;
}
self::$_store->setValue((string) $tl, 'traffic_limiter', $hash);
if (!self::$_store->setValue((string) $tl, 'traffic_limiter', $hash)) {
error_log('failed to store the traffic limiter, it probably contains outdated information');
}
return $result;
}
}