log request body in case of error
This commit is contained in:
parent
1ca3c9380b
commit
50db9ce6df
1
index.js
1
index.js
@ -57,6 +57,7 @@ const server = http.createServer(async (req, res) => {
|
||||
);
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
if (body) console.error(body);
|
||||
}
|
||||
|
||||
res.writeHead(201);
|
||||
|
Loading…
x
Reference in New Issue
Block a user