Skip to content

Commit 23da9bf

Browse files
authored
Ensure LOG_LEVEL is correctly picked up (#435)
Fix issue #434
1 parent 26488a7 commit 23da9bf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Sources/AWSLambdaRuntimeCore/LambdaRuntime.swift

+2-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ public final class LambdaRuntime<Handler>: @unchecked Sendable where Handler: St
3939
// this approach is less flexible but more performant than reading the value of the environment variable at each invocation
4040
var log = logger
4141
log.logLevel = Lambda.env("LOG_LEVEL").flatMap(Logger.Level.init) ?? .info
42-
self.logger = logger
42+
self.logger = log
43+
self.logger.debug("LambdaRuntime initialized")
4344
}
4445

4546
public func run() async throws {

0 commit comments

Comments
 (0)