Skip to content

Commit ce6d929

Browse files
committed
fix(search_service): replace console.log with logger.info for structured logging
- Replace console.log calls with logger.info in propertySearchFunction - Update debug logging for country, city, street, and number parameters - Update projection properties debug logging - Ensures consistent structured logging throughout the search service
1 parent e85d093 commit ce6d929

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

unicorn_web/src/search_service/propertySearchFunction.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -205,11 +205,11 @@ class PropertySearchFunction implements LambdaInterface {
205205
const city = event.pathParameters?.city;
206206
const street = event.pathParameters?.street;
207207
const number = event.pathParameters?.number;
208-
console.log(`Country: ${country}`);
209-
console.log(`City: ${city}`);
210-
console.log(`street: ${street}`);
211-
console.log(`number: ${number}`);
212-
console.log(`PROJECT PROPS: ${PROJECTION_PROPERTIES}`);
208+
logger.info(`Country: ${country}`);
209+
logger.info(`City: ${city}`);
210+
logger.info(`street: ${street}`);
211+
logger.info(`number: ${number}`);
212+
logger.info(`PROJECT PROPS: ${PROJECTION_PROPERTIES}`);
213213

214214
logger.info(
215215
`Get property details for: country = ${country}; city = ${city}; street = ${street}; number = ${number}`

0 commit comments

Comments
 (0)