log errors storing persistance

This commit is contained in:
El RIDO 2021-06-16 05:32:45 +02:00
parent 3d9ba10fcb
commit fd08d991fe
No known key found for this signature in database
GPG key ID: 0F5C940A6BD81F92
3 changed files with 11 additions and 4 deletions

View file

@ -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;
}