mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 18:21:40 -04:00
Merge pull request #51921 from nextcloud/usermountcache-logging
feat: add debug logging for adding/removing items from the user mounts cache
This commit is contained in:
commit
0c51b09005
1 changed files with 3 additions and 0 deletions
|
|
@ -98,15 +98,18 @@ class UserMountCache implements IUserMountCache {
|
|||
$userUID = $user->getUID();
|
||||
try {
|
||||
foreach ($addedMounts as $mount) {
|
||||
$this->logger->debug("Adding mount '{$mount->getKey()}' for user '$userUID'", ['app' => 'files', 'mount_provider' => $mount->getMountProvider()]);
|
||||
$this->addToCache($mount);
|
||||
/** @psalm-suppress InvalidArgument */
|
||||
$this->mountsForUsers[$userUID][$mount->getKey()] = $mount;
|
||||
}
|
||||
foreach ($removedMounts as $mount) {
|
||||
$this->logger->debug("Removing mount '{$mount->getKey()}' for user '$userUID'", ['app' => 'files', 'mount_provider' => $mount->getMountProvider()]);
|
||||
$this->removeFromCache($mount);
|
||||
unset($this->mountsForUsers[$userUID][$mount->getKey()]);
|
||||
}
|
||||
foreach ($changedMounts as $mount) {
|
||||
$this->logger->debug("Updating mount '{$mount->getKey()}' for user '$userUID'", ['app' => 'files', 'mount_provider' => $mount->getMountProvider()]);
|
||||
$this->updateCachedMount($mount);
|
||||
/** @psalm-suppress InvalidArgument */
|
||||
$this->mountsForUsers[$userUID][$mount->getKey()] = $mount;
|
||||
|
|
|
|||
Loading…
Reference in a new issue