More logging

This commit is contained in:
Mark van Renswoude 2021-08-18 18:58:44 +02:00
parent 796d519c31
commit 1d1d5ab26f

View File

@ -22,11 +22,12 @@ class PushoverTransport
const response = await axios.post("https://api.pushover.net/1/messages.json", data);
logger.verbose(`Pushover API returned status code ${response.status}`);
return response.status === 200;
}
catch
catch (err)
{
logger.verbose(`Pushover API error: ${err}`);
return false;
}
}