@@ -17,9 +17,7 @@ module.exports = {
17
17
} ,
18
18
19
19
testConnection : async function ( connectionInfo , logger , cb ) {
20
- logger . clear ( ) ;
21
20
client = setUpDocumentClient ( connectionInfo ) ;
22
- logger . log ( 'info' , connectionInfo , 'Reverse-Engineering connection settings' , connectionInfo . hiddenKeys ) ;
23
21
try {
24
22
await executeWithTimeout ( getDatabasesData ) ;
25
23
return cb ( ) ;
@@ -30,8 +28,6 @@ module.exports = {
30
28
31
29
getDatabases : async function ( connectionInfo , logger , cb ) {
32
30
client = setUpDocumentClient ( connectionInfo ) ;
33
- logger . clear ( ) ;
34
- logger . log ( 'info' , connectionInfo , 'Reverse-Engineering connection settings' , connectionInfo . hiddenKeys ) ;
35
31
36
32
try {
37
33
const dbsData = await getDatabasesData ( ) ;
@@ -46,7 +42,6 @@ module.exports = {
46
42
47
43
getDocumentKinds : async function ( connectionInfo , logger , cb ) {
48
44
client = setUpDocumentClient ( connectionInfo ) ;
49
- logger . log ( 'info' , connectionInfo , 'Reverse-Engineering connection settings' , connectionInfo . hiddenKeys ) ;
50
45
51
46
try {
52
47
const collections = await listCollections ( connectionInfo . database ) ;
@@ -91,8 +86,6 @@ module.exports = {
91
86
getDbCollectionsNames : async function ( connectionInfo , logger , cb ) {
92
87
try {
93
88
client = setUpDocumentClient ( connectionInfo ) ;
94
- logger . log ( 'info' , connectionInfo , 'Reverse-Engineering connection settings' , connectionInfo . hiddenKeys ) ;
95
-
96
89
logger . log (
97
90
'info' ,
98
91
{ Database : connectionInfo . database } ,
@@ -122,16 +115,8 @@ module.exports = {
122
115
try {
123
116
logger . progress = logger . progress || ( ( ) => { } ) ;
124
117
client = setUpDocumentClient ( data ) ;
125
- logger . log ( 'info' , data , 'Reverse-Engineering connection settings' , data . hiddenKeys ) ;
126
118
127
119
const { recordSamplingSettings, fieldInference } = data ;
128
- logger . log (
129
- 'info' ,
130
- getSamplingInfo ( recordSamplingSettings , fieldInference ) ,
131
- 'Reverse-Engineering sampling params' ,
132
- data . hiddenKeys ,
133
- ) ;
134
-
135
120
const bucketList = data . collectionData . dataBaseNames ;
136
121
logger . log ( 'info' , { CollectionList : bucketList } , 'Selected collection list' , data . hiddenKeys ) ;
137
122
@@ -679,8 +664,6 @@ async function getAdditionalAccountInfo(connectionInfo, logger) {
679
664
return { } ;
680
665
}
681
666
682
- logger . log ( 'info' , { } , 'Account additional info' , connectionInfo . hiddenKeys ) ;
683
-
684
667
try {
685
668
const { clientId, appSecret, tenantId, subscriptionId, resourceGroupName, host } = connectionInfo ;
686
669
const accNameRegex = / h t t p s : \/ \/ ( .+ ) \. d o c u m e n t s .+ / i;
0 commit comments