Skip to content

Commit dd562c8

Browse files
committed
increase RE process loging
1 parent c5c2b02 commit dd562c8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

reverse_engineering/api.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ module.exports = {
6464
const result = await collections.reduce(async(acc, collection) => {
6565
const res = await acc;
6666
await gremlinHelper.connect({ ...connectionInfo, collection: collection.id });
67+
logger.log('info', '', 'Connected to the Gremlin API', connectionInfo.hiddenKeys);
6768
const collectionLebels = await gremlinHelper.getLabels();
69+
logger.log('info', { collectionLabels: collectionLebels }, 'Collection labels list', connectionInfo.hiddenKeys);
6870
gremlinHelper.close();
6971

7072
return [
@@ -94,6 +96,7 @@ module.exports = {
9496
const includeEmptyCollection = data.includeEmptyCollection;
9597
const includeSystemCollection = data.includeSystemCollection;
9698
const recordSamplingSettings = data.recordSamplingSettings;
99+
logger.log('info', '', 'Getting DB account info', data.hiddenKeys);
97100
const { resource: accountInfo } = await client.getDatabaseAccount();
98101
const additionalAccountInfo = await getAdditionalAccountInfo(data, logger);
99102
const modelInfo = {
@@ -131,6 +134,7 @@ module.exports = {
131134
TTLseconds: collection.defaultTtl
132135
}, indexes);
133136

137+
logger.log('info', { collection: collectionName }, 'Getting container nodes data', data.hiddenKeys);
134138
await gremlinHelper.connect({ collection: collectionName });
135139
const nodesData = await getNodesData(collectionName, labels, logger, {
136140
recordSamplingSettings,

0 commit comments

Comments
 (0)