diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2024-01-03 14:16:51 -0100 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2024-01-04 21:51:56 -0100 |
commit | e5bee95f0506e002c3bf828bfdd0063b6f77ecde (patch) | |
tree | 29b4bb1f0de0b383dfb5bbc229161ab4b0b106ca /lib/private/FilesMetadata | |
parent | 7c3936b6f8f9b2c2b2c1cf7e917c885b58ef9d72 (diff) | |
download | nextcloud-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/private/FilesMetadata')
-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 { |