diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2024-01-08 11:45:54 -0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-08 11:45:54 -0100 |
commit | dd8297553c59cac22571b716cc519e8638158bc8 (patch) | |
tree | 9e59e19b367bc9aaf75fa249649858c9859e0d41 | |
parent | d2f2ee2b206f3f06ffdeb9de356fb859b873ffdc (diff) | |
parent | e5bee95f0506e002c3bf828bfdd0063b6f77ecde (diff) | |
download | nextcloud-server-dd8297553c59cac22571b716cc519e8638158bc8.tar.gz nextcloud-server-dd8297553c59cac22571b716cc519e8638158bc8.zip |
Merge pull request #42560 from nextcloud/fix/42308/logs-more
debug logs on huge metadata
-rw-r--r-- | lib/private/FilesMetadata/FilesMetadataManager.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/FilesMetadata/FilesMetadataManager.php b/lib/private/FilesMetadata/FilesMetadataManager.php index 013c85af604..9bfa8ae49d6 100644 --- a/lib/private/FilesMetadata/FilesMetadataManager.php +++ b/lib/private/FilesMetadata/FilesMetadataManager.php @@ -176,7 +176,8 @@ class FilesMetadataManager implements IFilesMetadataManager { $json = json_encode($filesMetadata->jsonSerialize()); if (strlen($json) > self::JSON_MAXSIZE) { - throw new FilesMetadataException('json cannot exceed ' . self::JSON_MAXSIZE . ' characters long'); + $this->logger->debug('huge metadata content detected: ' . $json); + throw new FilesMetadataException('json cannot exceed ' . self::JSON_MAXSIZE . ' characters long; fileId: ' . $filesMetadata->getFileId() . '; size: ' . strlen($json)); } try { |