aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2024-01-03 14:16:51 -0100
committerMaxence Lange <maxence@artificial-owl.com>2024-01-04 21:51:56 -0100
commite5bee95f0506e002c3bf828bfdd0063b6f77ecde (patch)
tree29b4bb1f0de0b383dfb5bbc229161ab4b0b106ca /lib
parent7c3936b6f8f9b2c2b2c1cf7e917c885b58ef9d72 (diff)
downloadnextcloud-server-e5bee95f0506e002c3bf828bfdd0063b6f77ecde.tar.gz
nextcloud-server-e5bee95f0506e002c3bf828bfdd0063b6f77ecde.zip
debug logs on huge metadata
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
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 {