upd: add logger, check hostname, add catch
This commit is contained in:
parent
381ea14049
commit
621f2e2ee4
2 changed files with 23 additions and 3 deletions
|
|
@ -408,7 +408,11 @@ export class DriveService {
|
|||
if (this.meta.objectStorageSetPublicRead) params.ACL = 'public-read';
|
||||
|
||||
if (this.bunnyService.usingBunnyCDN(this.meta)) {
|
||||
await this.bunnyService.upload(this.meta, key, stream);
|
||||
await this.bunnyService.upload(this.meta, key, stream).catch(
|
||||
err => {
|
||||
this.registerLogger.error(`Upload Failed: key = ${key}, filename = ${filename}`, err);
|
||||
},
|
||||
);
|
||||
} else {
|
||||
await this.s3Service.upload(this.meta, params)
|
||||
.then(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue