|
Currently, we log only the shape of the requests:
req.logger.info('Performing a query generation request', {
|
hasSchema: !!req.body.schema,
|
hasCollectionName: !!req.body.collectionName,
|
hasSampleDocuments: !!req.body.hasSampleDocuments,
|
});
|
And errors in responses:
req.logger.error('Error occurred', err);
|
For the internal beta, we want to log full requests and responses to learning from this experience how good our prompts are at building MongoDB queries. Since we don't use sample documents we should be okay from security perspective.
|