From 42661302a1d807962760464682edfe8adfae40aa Mon Sep 17 00:00:00 2001 From: Peter Nemere Date: Tue, 26 Mar 2024 06:52:01 +1000 Subject: [PATCH] Print out lambda version on startup --- internal/lambdas/data-import/main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/lambdas/data-import/main.go b/internal/lambdas/data-import/main.go index 26cc31fa..fed9c2bb 100644 --- a/internal/lambdas/data-import/main.go +++ b/internal/lambdas/data-import/main.go @@ -25,6 +25,7 @@ import ( "github.com/aws/aws-lambda-go/lambda" "github.com/pixlise/core/v4/api/dataimport" + "github.com/pixlise/core/v4/api/services" "github.com/pixlise/core/v4/core/awsutil" "github.com/pixlise/core/v4/core/fileaccess" "github.com/pixlise/core/v4/core/logger" @@ -32,6 +33,8 @@ import ( ) func HandleRequest(ctx context.Context, event awsutil.Event) (string, error) { + fmt.Printf("Data Importer Lambda version: %v\n", services.ApiVersion) + configBucket := os.Getenv("CONFIG_BUCKET") datasetBucket := os.Getenv("DATASETS_BUCKET") manualBucket := os.Getenv("MANUAL_BUCKET")