Browse Source

添加错误body

visuddhinanda 1 year ago
parent
commit
6d5181a395
1 changed files with 2 additions and 2 deletions
  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;
         }