ADD: provide response information for ntfy publish
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
f20a2919d3
commit
72e3b54fdf
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user