log request body in case of error

This commit is contained in:
Timo Hocker 2019-07-04 13:07:32 +02:00
parent 1ca3c9380b
commit 50db9ce6df

View File

@ -57,6 +57,7 @@ const server = http.createServer(async (req, res) => {
);
} catch (e) {
console.error(e);
if (body) console.error(body);
}
res.writeHead(201);