mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Merge pull request #42560 from nextcloud/fix/42308/logs-more
debug logs on huge metadata
This commit is contained in:
commit
dd8297553c
1 changed files with 2 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue