Преглед изворни кода

[智价云] 完善错误日志信息记录

tangyuanwang пре 1 дан
родитељ
комит
e24008f428

+ 1 - 1
app/Jobs/Manager/Process/LowPriceGoodsDataJobs.php

@@ -540,6 +540,6 @@ class LowPriceGoodsDataJobs implements ShouldQueue
 
     public function failed(\Throwable $exception)
     {
-        Log::info('job_error', '数据清洗-低价挂网商品队列完全失败', ['data' => $this->message_data, 'error' => $exception]);
+        Log::info('job_error', '数据清洗-低价挂网商品队列完全失败', ['data' => $this->message_data, 'error' => $exception->getMessage()]);
     }
 }

+ 1 - 1
app/Jobs/Manager/Process/LowPriceGoodsJobs.php

@@ -114,6 +114,6 @@ class LowPriceGoodsJobs implements ShouldQueue
 
     public function failed(\Throwable $exception)
     {
-        Log::info('job_error', '数据清洗-低价挂网商品配置队列完全失败', ['data' => $this->message_data, 'error' => $exception]);
+        Log::info('job_error', '数据清洗-低价挂网商品配置队列完全失败', ['data' => $this->message_data, 'error' => $exception->getMessage()]);
     }
 }

+ 1 - 1
app/Jobs/Manager/Process/SendAliyunSmsJobs.php

@@ -66,6 +66,6 @@ class SendAliyunSmsJobs implements ShouldQueue
 
     public function failed(\Throwable $exception)
     {
-        Log::info('job_send_sms', '订阅短信通知推送队列完全失败', ['data' => $this->message_data, 'error' => $exception]);
+        Log::info('job_send_sms', '订阅短信通知推送队列完全失败', ['data' => $this->message_data, 'error' => $exception->getMessage()]);
     }
 }

+ 1 - 1
app/Jobs/Manager/Process/SendEmailJobs.php

@@ -60,6 +60,6 @@ class SendEmailJobs implements ShouldQueue
 
     public function failed(\Throwable $exception)
     {
-        Log::info('job_send_email', '发送邮件通知队列完全失败', ['data' => $this->message_data, 'error' => $exception]);
+        Log::info('job_send_email', '发送邮件通知队列完全失败', ['data' => $this->message_data, 'error' => $exception->getMessage()]);
     }
 }

+ 1 - 1
app/Jobs/Manager/Process/SendNoticeJobs.php

@@ -188,6 +188,6 @@ class SendNoticeJobs implements ShouldQueue
 
     public function failed(\Throwable $exception)
     {
-        Log::info('job_error', '发送订阅通知队列完全失败', ['data' => $this->message_data, 'error' => $exception]);
+        Log::info('job_error', '发送订阅通知队列完全失败', ['data' => $this->message_data, 'error' => $exception->getMessage()]);
     }
 }

+ 1 - 1
app/Jobs/Manager/Process/SubNoticeJobs.php

@@ -372,6 +372,6 @@ class SubNoticeJobs implements ShouldQueue
 
     public function failed(\Throwable $exception)
     {
-        Log::info('job_error', '订阅通知推送队列完全失败', ['data' => $this->message_data, 'error' => $exception]);
+        Log::info('job_error', '订阅通知推送队列完全失败', ['data' => $this->message_data, 'error' => $exception->getMessage()]);
     }
 }

+ 1 - 1
app/Jobs/Manager/Process/SubscriptionJobs.php

@@ -206,6 +206,6 @@ class SubscriptionJobs implements ShouldQueue
 
     public function failed(\Throwable $exception)
     {
-        Log::info('job_error', '订阅消息通知推送队列完全失败', ['data' => $this->message_data, 'error' => $exception]);
+        Log::info('job_error', '订阅消息通知推送队列完全失败', ['data' => $this->message_data, 'error' => $exception->getMessage()]);
     }
 }

+ 1 - 1
app/Jobs/Manager/Process/ViolationCompanyDataJobs.php

@@ -400,6 +400,6 @@ class ViolationCompanyDataJobs implements ShouldQueue
 
     public function failed(\Throwable $exception)
     {
-        Log::info('job_error', '数据清洗-违规公司店铺清洗数据队列完全失败', ['data' => $this->message_data, 'error' => $exception]);
+        Log::info('job_error', '数据清洗-违规公司店铺清洗数据队列完全失败', ['data' => $this->message_data, 'error' => $exception->getMessage()]);
     }
 }

+ 1 - 1
app/Jobs/Manager/Process/ViolationCompanyJobs.php

@@ -99,6 +99,6 @@ class ViolationCompanyJobs implements ShouldQueue
 
     public function failed(\Throwable $exception)
     {
-        Log::info('job_error', '数据清洗-违规挂网公司队列完全失败', ['data' => $this->message_data, 'error' => $exception]);
+        Log::info('job_error', '数据清洗-违规挂网公司队列完全失败', ['data' => $this->message_data, 'error' => $exception->getMessage()]);
     }
 }

+ 1 - 1
app/Jobs/Manager/Process/ViolationProductDataJobs.php

@@ -532,6 +532,6 @@ class ViolationProductDataJobs implements ShouldQueue
 
     public function failed(\Throwable $exception)
     {
-        Log::info('job_error', '数据清洗-违规挂网商品数据队列完全失败', ['data' => $this->message_data, 'error' => $exception]);
+        Log::info('job_error', '数据清洗-违规挂网商品数据队列完全失败', ['data' => $this->message_data, 'error' => $exception->getMessage()]);
     }
 }

+ 1 - 1
app/Jobs/Manager/Process/ViolationProductJobs.php

@@ -112,6 +112,6 @@ class ViolationProductJobs implements ShouldQueue
 
     public function failed(\Throwable $exception)
     {
-        Log::info('job_error', '数据清洗-违规挂网商品队列完全失败', ['data' => $this->message_data, 'error' => $exception]);
+        Log::info('job_error', '数据清洗-违规挂网商品队列完全失败', ['data' => $this->message_data, 'error' => $exception->getMessage()]);
     }
 }

+ 1 - 1
app/Jobs/Manager/Process/ViolationStoreDataJobs.php

@@ -388,6 +388,6 @@ class ViolationStoreDataJobs implements ShouldQueue
 
     public function failed(\Throwable $exception)
     {
-        Log::info('job_error', '数据清洗-违规店铺清洗数据队列完全失败', ['data' => $this->message_data, 'error' => $exception]);
+        Log::info('job_error', '数据清洗-违规店铺清洗数据队列完全失败', ['data' => $this->message_data, 'error' => $exception->getMessage()]);
     }
 }

+ 1 - 1
app/Jobs/Manager/Process/ViolationStoreJobs.php

@@ -96,6 +96,6 @@ class ViolationStoreJobs implements ShouldQueue
 
     public function failed(\Throwable $exception)
     {
-        Log::info('job_error', '数据清洗-违规挂网店铺队列完全失败', ['data' => $this->message_data, 'error' => $exception]);
+        Log::info('job_error', '数据清洗-违规挂网店铺队列完全失败', ['data' => $this->message_data, 'error' => $exception->getMessage()]);
     }
 }