aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2024-01-08 11:45:54 -0100
committerGitHub <noreply@github.com>2024-01-08 11:45:54 -0100
commitdd8297553c59cac22571b716cc519e8638158bc8 (patch)
tree9e59e19b367bc9aaf75fa249649858c9859e0d41 /lib
parentd2f2ee2b206f3f06ffdeb9de356fb859b873ffdc (diff)
parente5bee95f0506e002c3bf828bfdd0063b6f77ecde (diff)
downloadnextcloud-server-dd8297553c59cac22571b716cc519e8638158bc8.tar.gz
nextcloud-server-dd8297553c59cac22571b716cc519e8638158bc8.zip
Merge pull request #42560 from nextcloud/fix/42308/logs-more
debug logs on huge metadata
Diffstat (limited to 'lib')
-rw-r--r--lib/private/FilesMetadata/FilesMetadataManager.php3
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 {