chore(server): enhance log context and messages (#10151)

This commit is contained in:
Brooooooklyn
2025-02-13 12:24:12 +00:00
parent 79d5f55471
commit 96bde3ceaf
3 changed files with 12 additions and 5 deletions

View File

@@ -70,9 +70,16 @@ export class S3StorageProvider implements StorageProvider {
this.logger.verbose(`Object \`${key}\` put`);
} catch (e) {
throw new Error(`Failed to put object \`${key}\``, {
cause: e,
});
throw new Error(
`Failed to put object (${JSON.stringify({
key,
bucket: this.bucket,
metadata,
})})`,
{
cause: e,
}
);
}
}