diff --git a/api/app/lib/controllers/project/group.js b/api/app/lib/controllers/project/group.js index 21a518e..7f9f69a 100644 --- a/api/app/lib/controllers/project/group.js +++ b/api/app/lib/controllers/project/group.js @@ -196,7 +196,7 @@ async function groupStatistic (ctx) { ctx.status = 200; ctx.body = rslt } catch (error) { - ctx.fs.logger.error(`path: ${ctx.path}, error: error`); + ctx.fs.logger.error(`path: ${ctx.path}, error: ${error}`); ctx.status = 400; ctx.body = { message: typeof error == 'string' ? error : undefined @@ -310,7 +310,7 @@ async function groupStatisticOnline (ctx) { ctx.status = 200; ctx.body = strucRes; } catch (error) { - ctx.fs.logger.error(`path: ${ctx.path}, error: error`); + ctx.fs.logger.error(`path: ${ctx.path}, error: ${error}`); ctx.status = 400; ctx.body = { message: typeof error == 'string' ? error : undefined