visuddhinanda 1 год назад
Родитель
Сommit
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;
         }