Skip to content

Commit ff99bd0

Browse files
committed
logger
1 parent 55b650d commit ff99bd0

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

translation/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ app.get('/health', (_request, response) => {
148148
});
149149

150150
app.post('*', async (request, response) => {
151-
// console.log(JSON.stringify([request.headers, request.body], null, 2));
152151
const body = request.body;
153152

154153
const { content, to, status, edit } = body;
@@ -253,7 +252,7 @@ app.post('*', async (request, response) => {
253252
text: fragment.firstChild.innerHTML, from, to,
254253
});
255254
} catch (err) {
256-
logger.error = err;
255+
logger.error = err.toString();
257256
logger.content = content;
258257
log.error('[error]', JSON.stringify(logger));
259258

0 commit comments

Comments
 (0)