From ab9343aa1e87f01892007632602ac5926f3f8799 Mon Sep 17 00:00:00 2001 From: Sebastien Stormacq Date: Thu, 19 Dec 2024 18:33:12 +0100 Subject: [PATCH] Fix #434 --- Sources/AWSLambdaRuntimeCore/LambdaRuntime.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Sources/AWSLambdaRuntimeCore/LambdaRuntime.swift b/Sources/AWSLambdaRuntimeCore/LambdaRuntime.swift index c058bf3d..f10f07b1 100644 --- a/Sources/AWSLambdaRuntimeCore/LambdaRuntime.swift +++ b/Sources/AWSLambdaRuntimeCore/LambdaRuntime.swift @@ -39,7 +39,8 @@ public final class LambdaRuntime: @unchecked Sendable where Handler: St // this approach is less flexible but more performant than reading the value of the environment variable at each invocation var log = logger log.logLevel = Lambda.env("LOG_LEVEL").flatMap(Logger.Level.init) ?? .info - self.logger = logger + self.logger = log + self.logger.debug("LambdaRuntime initialized") } public func run() async throws {