swift-server / swift-aws-lambda-runtime

Swift implementation of AWS Lambda Runtime
Apache License 2.0
1.14k stars 102 forks source link

Don't log work fetching failure at error. #313

Closed tachyonics closed 10 months ago

tachyonics commented 10 months ago

Don't log work fetching failure at error.

Motivation:

Code executed at this point may not actually represent an error (such as in the case of HTTPClient.Errors.cancelled) and each failure will also be logged at error or info appropriately here.

Modifications:

Change the level of this log event from error to debug.

Result:

A lambda runtime will not emit a log at level error whenever shutting down.