Skip to content

Commit 6a617db

Browse files
committed
Refactor and Json log formatter tests
1 parent 21f6622 commit 6a617db

File tree

1 file changed

+4
-2
lines changed
  • lambda-runtime/src/commonMain/kotlin/io/github/trueangle/knative/lambda/runtime

1 file changed

+4
-2
lines changed

lambda-runtime/src/commonMain/kotlin/io/github/trueangle/knative/lambda/runtime/LambdaRuntime.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ object LambdaRuntime {
6868
with(Log) {
6969
setContext(context)
7070

71-
trace(event)
72-
trace(context)
71+
debug(event)
72+
debug(context)
7373
}
7474

7575
Log.info("$handlerName invocation started")
@@ -85,6 +85,8 @@ object LambdaRuntime {
8585
val response = bufferedResponse(context) { handler.handleRequest(event, context) }
8686

8787
Log.info("$handlerName invocation completed")
88+
Log.debug("$handlerName response: ")
89+
Log.debug(response)
8890

8991
client.sendResponse(context, response, outputTypeInfo)
9092
}

0 commit comments

Comments
 (0)