diff --git a/lib/api/post-log.js b/lib/api/post-log.js index e05d73c..6d0a722 100644 --- a/lib/api/post-log.js +++ b/lib/api/post-log.js @@ -16,6 +16,7 @@ module.exports = async (req, res) => { app_id === 'undefined' || isNaN (parseInt (app_id)) ) { + console.log('bad request, did not receive app id'); res.status (http.status_bad_request) .end (); return; @@ -23,6 +24,7 @@ module.exports = async (req, res) => { const log = req.body; if (typeof log !== 'object') { + console.log('bad request, did not receive data in json format'); res.status (http.status_bad_request) .end (); return;