mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-25 15:55:22 +00:00
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:
commit
ec2c312d0e
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue