Replace reference of LogLevel enum from Core to RuntimeSupport version #1820
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of changes:
While building the OCI images that include the new structured logging support the smoke tests failed due to the fact that the smoke test function had an old reference of
Amazon.Lambda.Core
that didn't have theLogLevel
enum defined. The RuntimeSupport package had an unintended reference to theLogLevel
enum that caused an undefined enum exception when an unhandled exception. This PR updates theLogLevel
reference to the version defined in RuntimeSupport.This only affects when deploying functions as a class library because the executable programming model will have a version of
Amazon.Lambda.Core
that matches withAmazon.Lambda.RuntimeSupport
expects. So we don't need to patch the NuGet package and just need to get master updated which the OCI image builders use.Testing
After change all OCI smoke tests pass. The test function is still referencing the old version of
Amazon.Lambda.Core
to exercise this corner case.