Skip to content

Commit ddb656d

Browse files
authored
Revert "HCK-11091: Move the log of the start to the studio (#46)" (#47)
This reverts commit e40153f.
1 parent e40153f commit ddb656d

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

forward_engineering/api.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ module.exports = {
1212
callback(null, '');
1313
},
1414
applyToInstance(connectionInfo, logger, callback, app) {
15+
logger.clear();
16+
logger.log('info', connectionInfo, 'connectionInfo', connectionInfo.hiddenKeys);
17+
1518
applyToInstanceHelper
1619
.applyToInstance(connectionInfo, logger, app)
1720
.then(result => {

reverse_engineering/api.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict';
2+
13
const connectionHelper = require('./helpers/connectionHelper');
24
const mysqlHelper = require('./helpers/mysqlHelper');
35

@@ -28,7 +30,11 @@ module.exports = {
2830
hiddenKeys: connectionInfo.hiddenKeys,
2931
logger,
3032
});
33+
3134
try {
35+
logger.clear();
36+
logger.log('info', connectionInfo, 'connectionInfo', connectionInfo.hiddenKeys);
37+
3238
const sshService = app.require('@hackolade/ssh-service');
3339

3440
const connection = await this.connect(connectionInfo, sshService);
@@ -60,6 +66,8 @@ module.exports = {
6066
});
6167

6268
try {
69+
logger.clear();
70+
logger.log('info', connectionInfo, 'connectionInfo', connectionInfo.hiddenKeys);
6371
const systemDatabases = connectionInfo.includeSystemCollection
6472
? []
6573
: ['information_schema', 'mysql', 'performance_schema'];
@@ -119,7 +127,10 @@ module.exports = {
119127
});
120128

121129
try {
130+
logger.log('info', data, 'data', data.hiddenKeys);
131+
122132
const sshService = app.require('@hackolade/ssh-service');
133+
123134
const collections = data.collectionData.collections;
124135
const dataBaseNames = data.collectionData.dataBaseNames;
125136
const connection = await this.connect(data, sshService);

0 commit comments

Comments
 (0)