mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
debug logs on huge metadata
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
This commit is contained in:
parent
7c3936b6f8
commit
e5bee95f05
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