Commit ff99bd0e authored by mashirozx's avatar mashirozx
Browse files

logger

parent 55b650d3
Showing with 1 addition and 2 deletions
+1 -2
......@@ -148,7 +148,6 @@ app.get('/health', (_request, response) => {
});
app.post('*', async (request, response) => {
// console.log(JSON.stringify([request.headers, request.body], null, 2));
const body = request.body;
const { content, to, status, edit } = body;
......@@ -253,7 +252,7 @@ app.post('*', async (request, response) => {
text: fragment.firstChild.innerHTML, from, to,
});
} catch (err) {
logger.error = err;
logger.error = err.toString();
logger.content = content;
log.error('[error]', JSON.stringify(logger));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment