Kaynağa Gözat

Add error logging for migrating to cloud storage failures

Andy Blyler 2 yıl önce
ebeveyn
işleme
82bd1512fe
1 değiştirilmiş dosya ile 3 ekleme ve 0 silme
  1. 3 0
      app/Console/Commands/CloudMediaMigrate.php

+ 3 - 0
app/Console/Commands/CloudMediaMigrate.php

@@ -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;
                     }
                     }
                 }
                 }