Skip to content
Snippets Groups Projects
Commit e6851482 authored by Lio Novelli's avatar Lio Novelli Committed by mondrake
Browse files

Issue #3271212 by useernamee, mondrake, fago: Offset -1 not within [0, 5798]

parent c09207d6
No related branches found
Tags 9.3.3
No related merge requests found
......@@ -168,7 +168,11 @@ class FileMetadata implements FileMetadataInterface {
}
}
catch (\Exception $e) {
$this->logger->error($e->getMessage());
$this->logger->error('Error getting supported keys for @metadata metadata for @uri. Message: @message', [
'@metadata' => $metadata_id ?? '',
'@uri' => $this->uri ?? '',
'@message' => $e->getMessage() ?? '',
]);
$keys = NULL;
}
return $keys;
......@@ -187,7 +191,12 @@ class FileMetadata implements FileMetadataInterface {
}
}
catch (\Exception $e) {
$this->logger->error($e->getMessage());
$this->logger->error('Error getting @metadata_id@key metadata for @uri. Message: @message', [
'@metadata_id' => $metadata_id ?? '',
'@key' => $key ? ' ('. var_export($key, TRUE) . ')' : '',
'@uri' => $this->uri ?? '',
'@message' => $e->getMessage() ?? '',
]);
$metadata = NULL;
}
return $metadata;
......@@ -203,7 +212,12 @@ class FileMetadata implements FileMetadataInterface {
}
}
catch (\Exception $e) {
$this->logger->error($e->getMessage());
$this->logger->error('Error deleting @key from @metadata_id metadata for @uri. Message: @message', [
'@metadata_id' => $metadata_id ?? '',
'@key' => $key ? var_export($key, TRUE) : '',
'@uri' => $this->uri ?? '',
'@message' => $e->getMessage() ?? '',
]);
}
return FALSE;
}
......@@ -218,7 +232,12 @@ class FileMetadata implements FileMetadataInterface {
}
}
catch (\Exception $e) {
$this->logger->error($e->getMessage());
$this->logger->error('Error setting @metadata_id@key metadata for @uri. Message: @message', [
'@metadata_id' => $metadata_id ?? '',
'@key' => $key ? ' (' . var_export($key, TRUE) . ')' : '',
'@uri' => $this->uri ?? '',
'@message' => $e->getMessage() ?? '',
]);
}
return FALSE;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment