diff options
-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 { |