Skip to content

Commit e2235ae

Browse files
committed
log like we do in Python functions
1 parent e76fe17 commit e2235ae

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/handlers/CreateEntity/function.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export async function handler_create (event: APIGatewayProxyEvent, context: Cont
8383
const response: SuccessResponseType = { "request_id": event_id }
8484
body = JSON.stringify(response)
8585
} catch (error) {
86-
LOGGER.error("Operation failed", { event })
86+
LOGGER.error("Operation failed", { message_object: event })
8787
const fault = (<DynamoDBServiceException>error).$fault
8888
switch (fault) {
8989
case 'client':

src/handlers/DeleteEntity/function.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export async function deleteEntity(
5151

5252

5353
export async function handler (event: APIGatewayProxyEvent, context: Context): Promise<APIGatewayProxyResult> {
54-
LOGGER.debug('Received event', { event })
54+
LOGGER.debug('Received event', { message_object: event })
5555
const event_id = context.awsRequestId
5656

5757
const namespace = event.pathParameters?.namespace as string

src/handlers/GetEntity/function.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export async function getEntity(
6666

6767

6868
export async function handler (event: APIGatewayProxyEvent, _: Context): Promise<APIGatewayProxyResult> {
69-
LOGGER.debug('Received event', { event })
69+
LOGGER.debug('Received event', { message_object: event })
7070

7171
const namespace = event.pathParameters?.namespace as string
7272
const kind = event.pathParameters?.kind as string

0 commit comments

Comments
 (0)