1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-03-23 21:09:30 +02:00
This commit is contained in:
Laurent Cozic 2020-12-28 17:26:15 +00:00
parent 0e0de1207f
commit 34a99f738c
3 changed files with 6 additions and 6 deletions

View File

@ -71,7 +71,7 @@ app.use(async (ctx: Koa.Context) => {
} }
} catch (error) { } catch (error) {
if (error.httpCode >= 400 && error.httpCode < 500) { if (error.httpCode >= 400 && error.httpCode < 500) {
appLogger().error(error.httpCode + ': ' + `${ctx.request.method} ${ctx.path}` + ' : ' + error.message); appLogger().error(`${error.httpCode}: ` + `${ctx.request.method} ${ctx.path}` + ` : ${error.message}`);
} else { } else {
appLogger().error(error); appLogger().error(error);
} }