ADD: provide response information for ntfy publish
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Dominik Meyer 2024-03-06 08:48:16 +01:00
parent f20a2919d3
commit 72e3b54fdf
Signed by: byterazor
GPG Key ID: EABDA0FD5981BC97

View File

@ -20,6 +20,15 @@ sub publish
my $response = $ua->post( $url, Markdown=>'yes', Content => to_json($msg));
if ($response->is_success)
{
$self->log->info("successfull delivery");
}
else
{
$self->log->error("delivery failed: " . $response->status_line);
}
}
sub prepareAuthToken