More logging
This commit is contained in:
parent
796d519c31
commit
1d1d5ab26f
@ -22,11 +22,12 @@ class PushoverTransport
|
|||||||
|
|
||||||
const response = await axios.post("https://api.pushover.net/1/messages.json", data);
|
const response = await axios.post("https://api.pushover.net/1/messages.json", data);
|
||||||
logger.verbose(`Pushover API returned status code ${response.status}`);
|
logger.verbose(`Pushover API returned status code ${response.status}`);
|
||||||
|
|
||||||
return response.status === 200;
|
return response.status === 200;
|
||||||
}
|
}
|
||||||
catch
|
catch (err)
|
||||||
{
|
{
|
||||||
|
logger.verbose(`Pushover API error: ${err}`);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user