Skip to content

Commit 41c1561

Browse files
committed
add logs for env vars on startup
1 parent 4fd732d commit 41c1561

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

main.go

+4
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ func main() {
2525
log.Println("Firetail extension starting in debug mode.")
2626
}
2727

28+
// Log the value of AWS_LAMBDA_EXEC_WRAPPER and AWS_LAMBDA_RUNTIME_API for debugging
29+
log.Println("AWS_LAMBDA_EXEC_WRAPPER:", os.Getenv("AWS_LAMBDA_EXEC_WRAPPER"))
30+
log.Println("AWS_LAMBDA_RUNTIME_API:", os.Getenv("AWS_LAMBDA_RUNTIME_API"))
31+
2832
// This context will be cancelled whenever a SIGTERM or SIGINT signal is received
2933
// We'll use it for our requests to the extensions API & to shutdown the log server
3034
ctx := getContext()

0 commit comments

Comments
 (0)