Skip to content

Commit

Permalink
Ensure LOG_LEVEL is correctly picked up (#435)
Browse files Browse the repository at this point in the history
Fix issue #434
  • Loading branch information
sebsto authored Dec 19, 2024
1 parent 26488a7 commit 23da9bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/AWSLambdaRuntimeCore/LambdaRuntime.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ public final class LambdaRuntime<Handler>: @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 {
Expand Down

0 comments on commit 23da9bf

Please sign in to comment.