From dbf3425f50dcb2cd80787c4ff117b608a7554933 Mon Sep 17 00:00:00 2001 From: "gao.zhiyuan" Date: Sun, 9 Oct 2022 16:23:10 +0800 Subject: [PATCH] vcmpAppAuthToken debug --- api/app/lib/controllers/alarm/video.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/app/lib/controllers/alarm/video.js b/api/app/lib/controllers/alarm/video.js index 18df667..afd58c4 100644 --- a/api/app/lib/controllers/alarm/video.js +++ b/api/app/lib/controllers/alarm/video.js @@ -294,7 +294,7 @@ async function vcmpAppAuthToken (ctx) { ctx.status = 200; ctx.body = { token } } 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