From 8d8ec1b7d22af0d43f615bf33799843de5ada8e9 Mon Sep 17 00:00:00 2001 From: "gao.zhiyuan" Date: Mon, 10 Oct 2022 11:30:07 +0800 Subject: [PATCH] debug --- code/VideoAccess-VCMP/api/app/lib/controllers/camera/index.js | 2 +- code/VideoAccess-VCMP/api/app/lib/controllers/status/alarm.js | 2 +- code/VideoAccess-VCMP/api/app/lib/controllers/status/index.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/code/VideoAccess-VCMP/api/app/lib/controllers/camera/index.js b/code/VideoAccess-VCMP/api/app/lib/controllers/camera/index.js index 581bbee..4fdb38c 100644 --- a/code/VideoAccess-VCMP/api/app/lib/controllers/camera/index.js +++ b/code/VideoAccess-VCMP/api/app/lib/controllers/camera/index.js @@ -327,7 +327,7 @@ async function getCmaeraUniqueConfig (ctx) { ctx.status = 200; ctx.body = cameraRes[0] } 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 diff --git a/code/VideoAccess-VCMP/api/app/lib/controllers/status/alarm.js b/code/VideoAccess-VCMP/api/app/lib/controllers/status/alarm.js index d22ce79..c436d79 100644 --- a/code/VideoAccess-VCMP/api/app/lib/controllers/status/alarm.js +++ b/code/VideoAccess-VCMP/api/app/lib/controllers/status/alarm.js @@ -75,7 +75,7 @@ async function record (ctx) { ctx.status = 204; } 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 diff --git a/code/VideoAccess-VCMP/api/app/lib/controllers/status/index.js b/code/VideoAccess-VCMP/api/app/lib/controllers/status/index.js index 1516892..b0d5900 100644 --- a/code/VideoAccess-VCMP/api/app/lib/controllers/status/index.js +++ b/code/VideoAccess-VCMP/api/app/lib/controllers/status/index.js @@ -270,7 +270,7 @@ async function statusRecord (ctx) { ctx.status = 20; } 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