mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-30 09:13:58 +00:00
SYNC: Merge pull request #7 from dbgate/feature/applog
This commit is contained in:
@@ -61,7 +61,7 @@ class DatastoreProxy {
|
||||
this.subprocess = null;
|
||||
});
|
||||
this.subprocess.on('error', err => {
|
||||
logger.error(extractErrorLogData(err), 'Error in data store subprocess');
|
||||
logger.error(extractErrorLogData(err), 'DBGM-00167 Error in data store subprocess');
|
||||
this.subprocess = null;
|
||||
});
|
||||
this.subprocess.send({ msgtype: 'open', file: this.file });
|
||||
@@ -77,7 +77,7 @@ class DatastoreProxy {
|
||||
try {
|
||||
this.subprocess.send({ msgtype: 'read', msgid, offset, limit });
|
||||
} catch (err) {
|
||||
logger.error(extractErrorLogData(err), 'Error getting rows');
|
||||
logger.error(extractErrorLogData(err), 'DBGM-00168 Error getting rows');
|
||||
this.subprocess = null;
|
||||
}
|
||||
});
|
||||
@@ -91,7 +91,7 @@ class DatastoreProxy {
|
||||
try {
|
||||
this.subprocess.send({ msgtype: 'notify', msgid });
|
||||
} catch (err) {
|
||||
logger.error(extractErrorLogData(err), 'Error notifying subprocess');
|
||||
logger.error(extractErrorLogData(err), 'DBGM-00169 Error notifying subprocess');
|
||||
this.subprocess = null;
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user