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

View file

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