Skip to content

Commit

Permalink
logging the DNS lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
bcollard committed Jan 31, 2024
1 parent 45f0f26 commit 7cce71f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/app/postgresql.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pool.on("error", (err, clients) => {
const search = async (itemName) => {
logger.info('pool details: ' + JSON.stringify(pool));
await dnsPromises.lookup(pool.options.host, dnsOptions).then((result) => {
console.log('addresses: %j', result);
logger.info('DNS lookup for host ' + pool.options.host + ': %j', result);
});
return await pool.query(
`SELECT data FROM marketItems WHERE name ILIKE '%${itemName}%'`
Expand Down

0 comments on commit 7cce71f

Please sign in to comment.