protected function LockrKeyProvider::logException in Lockr 8.4
Same name and namespace in other branches
- 8.3 src/Plugin/KeyProvider/LockrKeyProvider.php \Drupal\lockr\Plugin\KeyProvider\LockrKeyProvider::logException()
- 4.x src/Plugin/KeyProvider/LockrKeyProvider.php \Drupal\lockr\Plugin\KeyProvider\LockrKeyProvider::logException()
Logs exceptions that occur during Lockr requests.
Parameters
\Exception $e: The exception to log.
1 call to LockrKeyProvider::logException()
- LockrKeyProvider::getKeyValue in src/
Plugin/ KeyProvider/ LockrKeyProvider.php - Returns the value of a key.
File
- src/
Plugin/ KeyProvider/ LockrKeyProvider.php, line 199 - Contains Drupal\lockr\Plugin\KeyProvider\LockrKeyProvider.
Class
- LockrKeyProvider
- Adds a key provider that allows a key to be stored in Lockr.
Namespace
Drupal\lockr\Plugin\KeyProviderCode
protected function logException(\Exception $e) {
$this->logger
->error('Error retrieving value from Lockr [{ex_code}]: {ex_msg}', [
'ex_code' => $e
->getCode(),
'ex_msg' => $e
->getMessage(),
]);
}