diff --git a/api/app/lib/schedule/alarms_push.js b/api/app/lib/schedule/alarms_push.js index 54fb754..b7cb884 100644 --- a/api/app/lib/schedule/alarms_push.js +++ b/api/app/lib/schedule/alarms_push.js @@ -1526,10 +1526,7 @@ module.exports = function (app, opts) { `).toPromise() } - if (proDebug) { - console.log(`相关设备及测点信息:`); - // console.log(deviceSensorRes); - } + let alarmTitle = dataAlarmTitle.concat( videoAlarmTitle.slice(2).map(v => { return { diff --git a/api/app/lib/service/clickHouseClient.js b/api/app/lib/service/clickHouseClient.js index f688681..998033a 100644 --- a/api/app/lib/service/clickHouseClient.js +++ b/api/app/lib/service/clickHouseClient.js @@ -11,7 +11,7 @@ function factory (app, opts) { app.fs.clickHouse[d.name] = new ClickHouse({ url: url, port: port, - debug: opts.dev, + debug: true || opts.dev, format: "json", basicAuth: user && password ? { username: user,