diff --git a/app/Jobs/Util/WebhookSingle.php b/app/Jobs/Util/WebhookSingle.php index 8e83e018a9f0..d322738601c0 100644 --- a/app/Jobs/Util/WebhookSingle.php +++ b/app/Jobs/Util/WebhookSingle.php @@ -170,9 +170,9 @@ class WebhookSingle implements ShouldQueue } if ($e->getResponse()->getStatusCode() >= 500) { - nlog("endpoint returned a 500, failing"); + nlog("{$subscription->target_url} returned a 500, failing"); - $message = "The was a problem when connecting to {$subscription->target_url} => status code ". $e->getResponse()->getStatusCode(). " no retry attempted."; + $message = "There was a problem when connecting to {$subscription->target_url} => status code ". $e->getResponse()->getStatusCode(). " no retry attempted."; (new SystemLogger( ['message' => $message], diff --git a/app/Repositories/SchedulerRepository.php b/app/Repositories/SchedulerRepository.php index c0f852615632..2f2f314cb5c4 100644 --- a/app/Repositories/SchedulerRepository.php +++ b/app/Repositories/SchedulerRepository.php @@ -25,19 +25,14 @@ class SchedulerRepository extends BaseRepository */ public function save(array $data, Scheduler $scheduler): Scheduler { - nlog($data); $scheduler->fill($data); $scheduler->save(); - nlog($scheduler->withoutRelations()->toArray()); - /** 18-5-2023 set client specific send times. */ $scheduler->calculateNextRun(); - nlog($scheduler->withoutRelations()->toArray()); - return $scheduler->fresh(); } }