mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 00:56:02 +00:00
fixed: DBGate cannot execute any queries and the process is killed #1195
This commit is contained in:
@@ -5,6 +5,7 @@ const moment = require('moment');
|
|||||||
const path = require('path');
|
const path = require('path');
|
||||||
const { logsdir, setLogsFilePath, getLogsFilePath } = require('./utility/directories');
|
const { logsdir, setLogsFilePath, getLogsFilePath } = require('./utility/directories');
|
||||||
const currentVersion = require('./currentVersion');
|
const currentVersion = require('./currentVersion');
|
||||||
|
const _ = require('lodash');
|
||||||
|
|
||||||
const logger = getLogger('apiIndex');
|
const logger = getLogger('apiIndex');
|
||||||
|
|
||||||
@@ -68,7 +69,7 @@ function configureLogger() {
|
|||||||
}
|
}
|
||||||
const additionals = {};
|
const additionals = {};
|
||||||
const finalMsg =
|
const finalMsg =
|
||||||
msg.msg && msg.msg.match(/^DBGM-\d\d\d\d\d/)
|
_.isString(msg.msg) && msg.msg.match(/^DBGM-\d\d\d\d\d/)
|
||||||
? {
|
? {
|
||||||
...msg,
|
...msg,
|
||||||
msg: msg.msg.substring(10).trimStart(),
|
msg: msg.msg.substring(10).trimStart(),
|
||||||
|
|||||||
Reference in New Issue
Block a user