Skip to content

Commit 437fa64

Browse files
committed
Add debug logs for apprise
1 parent 7d74172 commit 437fa64

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

app/Notifications/AppriseChannel.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ public function send(object $notifiable, Notification $notification): void
3232
return;
3333
}
3434

35+
Log::debug('Attempting to send Apprise notification', [
36+
'channel' => $message->urls,
37+
'instance' => $appriseUrl,
38+
]);
39+
3540
try {
3641
$request = Http::timeout(30)
3742
->withHeaders([
@@ -43,7 +48,7 @@ public function send(object $notifiable, Notification $notification): void
4348
$request = $request->withoutVerifying();
4449
}
4550

46-
$response = $request->post($appriseUrl, [
51+
$response = $request->post($appriseUrl, [
4752
'urls' => $message->urls,
4853
'title' => $message->title,
4954
'body' => $message->body,
@@ -57,7 +62,7 @@ public function send(object $notifiable, Notification $notification): void
5762
throw new Exception('Apprise returned an error, please check Apprise logs for details');
5863
}
5964

60-
Log::info('Apprise notification sent', [
65+
Log::debug('Apprise notification sent', [
6166
'channel' => $message->urls,
6267
'instance' => $appriseUrl,
6368
]);

0 commit comments

Comments
 (0)