mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
better logging for webhooks
This commit is contained in:
parent
7099ab1c5d
commit
b27c77324e
@ -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],
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user