瀏覽代碼

添加错误body

visuddhinanda 1 年之前
父節點
當前提交
6d5181a395
共有 1 個文件被更改,包括 2 次插入 和 2 次删除
  1. 2 2
      api-v8/app/Console/Commands/UpgradeCompound.php

+ 2 - 2
api-v8/app/Console/Commands/UpgradeCompound.php

@@ -334,8 +334,8 @@ class UpgradeCompound extends Command
                 $this->error('upload fail.');
                 Log::error('upload fail.' . $response->body());
             }
-        } catch (\Throwable $throwable) {
-            Log::error('send notification failed', ['exception' => $throwable]);
+        } catch (GuzzleException $e) {
+            Log::error('send data failed', ['exception' => $e, 'body' => $e->getResponse()->getBody()->getContents()]);
             $httpError = true;
         }