Skip to content

Commit accb29b

Browse files
committed
make the logger accessible
1 parent c4c71cc commit accb29b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Sources/AWSLambdaRuntimeCore/LambdaRuntime.swift

+3-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ import Foundation
2929
public final class LambdaRuntime<Handler>: Service, @unchecked Sendable where Handler: StreamingLambdaHandler {
3030
// TODO: We want to change this to Mutex as soon as this doesn't crash the Swift compiler on Linux anymore
3131
let handlerMutex: NIOLockedValueBox<Handler?>
32-
let logger: Logger
32+
33+
// logger is accessible from the outside, but only mutable from the inside
34+
public private(set) var logger: Logger
3335
let eventLoop: EventLoop
3436

3537
public init(

0 commit comments

Comments
 (0)