Merge pull request #4063 from ablyler/add-cloud-media-migration-error-logs

Add error logging for migrating to cloud storage failures
This commit is contained in:
daniel 2023-01-08 12:29:39 -07:00 committed by GitHub
commit ec2c312d0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -66,10 +66,13 @@ class CloudMediaMigrate extends Command
try {
MediaStorageService::store($media);
} catch (FileNotFoundException $e) {
$this->error('Error migrating media ' . $media->id . ' to cloud storage: ' . $e->getMessage());
return;
} catch (NotFoundHttpException $e) {
$this->error('Error migrating media ' . $media->id . ' to cloud storage: ' . $e->getMessage());
return;
} catch (\Exception $e) {
$this->error('Error migrating media ' . $media->id . ' to cloud storage: ' . $e->getMessage());
return;
}
}