Skip to content

Commit e75b8c4

Browse files
authored
Merge pull request #55 from Vitalii4as/task/add-logs
RE: improve logs to identify whether all data was collected and sent into the application
2 parents 1a9e682 + 8878995 commit e75b8c4

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
@@ -194,6 +194,10 @@ module.exports = {
194194
})
195195
.then(({ packages, relationships }) => ({ packages: orderPackages(packages), relationships }));
196196

197+
postgresLogger.info('The data is processed and sent to the application', {
198+
packagesLength: packages?.length,
199+
relationshipsLength: relationships?.length,
200+
});
197201
callback(null, packages, modelData, relationships);
198202
} catch (error) {
199203
logger.log('error', prepareError(error), 'Retrieve tables data');

0 commit comments

Comments
 (0)