File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -104,13 +104,15 @@ public final class LambdaRuntime<Handler>: Sendable where Handler: StreamingLamb
104104 } catch {
105105 // catch top level errors that have not been handled until now
106106 // this avoids the runtime to crash and generate a backtrace
107- self . logger. error ( " LambdaRuntime.run() failed with error " , metadata: [ " error " : " \( error) " ] )
108107 if let error = error as? LambdaRuntimeError ,
109108 error. code != . connectionToControlPlaneLost
110109 {
111110 // if the error is a LambdaRuntimeError but not a connection error,
112111 // we rethrow it to preserve existing behaviour
112+ self . logger. error ( " LambdaRuntime.run() failed with error " , metadata: [ " error " : " \( error) " ] )
113113 throw error
114+ } else {
115+ self . logger. trace ( " LambdaRuntime.run() connection lost " )
114116 }
115117 }
116118
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ error() { printf -- "** ERROR: %s\n" "$*" >&2; }
1919fatal () { error " $@ " ; exit 1; }
2020
2121export HOST=127.0.0.1
22- export PORT=7000
22+ export PORT=7777
2323export AWS_LAMBDA_RUNTIME_API=" $HOST :$PORT "
2424export LOG_LEVEL=error # important, otherwise log becomes a bottleneck
2525
You can’t perform that action at this time.
0 commit comments