|
| 1 | +'use strict'; |
| 2 | + |
1 | 3 | const connectionHelper = require('./helpers/connectionHelper');
|
2 | 4 | const mysqlHelper = require('./helpers/mysqlHelper');
|
3 | 5 |
|
@@ -28,7 +30,11 @@ module.exports = {
|
28 | 30 | hiddenKeys: connectionInfo.hiddenKeys,
|
29 | 31 | logger,
|
30 | 32 | });
|
| 33 | + |
31 | 34 | try {
|
| 35 | + logger.clear(); |
| 36 | + logger.log('info', connectionInfo, 'connectionInfo', connectionInfo.hiddenKeys); |
| 37 | + |
32 | 38 | const sshService = app.require('@hackolade/ssh-service');
|
33 | 39 |
|
34 | 40 | const connection = await this.connect(connectionInfo, sshService);
|
@@ -60,6 +66,8 @@ module.exports = {
|
60 | 66 | });
|
61 | 67 |
|
62 | 68 | try {
|
| 69 | + logger.clear(); |
| 70 | + logger.log('info', connectionInfo, 'connectionInfo', connectionInfo.hiddenKeys); |
63 | 71 | const systemDatabases = connectionInfo.includeSystemCollection
|
64 | 72 | ? []
|
65 | 73 | : ['information_schema', 'mysql', 'performance_schema'];
|
@@ -119,7 +127,10 @@ module.exports = {
|
119 | 127 | });
|
120 | 128 |
|
121 | 129 | try {
|
| 130 | + logger.log('info', data, 'data', data.hiddenKeys); |
| 131 | + |
122 | 132 | const sshService = app.require('@hackolade/ssh-service');
|
| 133 | + |
123 | 134 | const collections = data.collectionData.collections;
|
124 | 135 | const dataBaseNames = data.collectionData.dataBaseNames;
|
125 | 136 | const connection = await this.connect(data, sshService);
|
|
0 commit comments