mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-09-27 19:51:03 -04:00
log errors storing persistance
This commit is contained in:
parent
3d9ba10fcb
commit
fd08d991fe
3 changed files with 11 additions and 4 deletions
|
@ -65,7 +65,9 @@ class ServerSalt extends AbstractPersistence
|
|||
self::$_salt = $salt;
|
||||
} else {
|
||||
self::$_salt = self::generate();
|
||||
self::$_store->setValue(self::$_salt, 'salt');
|
||||
if (!self::$_store->setValue(self::$_salt, 'salt')) {
|
||||
error_log('failed to store the server salt, delete tokens, traffic limiter and user icons won\'t work');
|
||||
}
|
||||
}
|
||||
return self::$_salt;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue