Browse Source

取消 clickhouse debug

dev
CODE 1 year ago
parent
commit
7b66b36848
  1. 2
      api/app/lib/schedule/alarms_push.js
  2. 2
      api/app/lib/service/clickHouseClient.js

2
api/app/lib/schedule/alarms_push.js

@ -4,7 +4,7 @@ let isDev = false
// isDev = true // isDev = true
let proDebug = false let proDebug = false
proDebug = true // proDebug = true
module.exports = function (app, opts) { module.exports = function (app, opts) {
const alarmsPush = app.fs.scheduleInit( const alarmsPush = app.fs.scheduleInit(

2
api/app/lib/service/clickHouseClient.js

@ -11,7 +11,7 @@ function factory (app, opts) {
app.fs.clickHouse[d.name] = new ClickHouse({ app.fs.clickHouse[d.name] = new ClickHouse({
url: url, url: url,
port: port, port: port,
debug: true || opts.dev, debug: opts.dev,
format: "json", format: "json",
basicAuth: user && password ? { basicAuth: user && password ? {
username: user, username: user,

Loading…
Cancel
Save