Skip to content

Commit

Permalink
Fixed issue detecting if log parameters have changed since previous d…
Browse files Browse the repository at this point in the history
…eployment. (#343)
  • Loading branch information
normj authored Nov 6, 2024
1 parent 1b144c3 commit 71d4a6a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

### Amazon.Lambda.Tools (5.11.1)
* Fixed an issue where primitive values in payload for InvokeFunctionCommand were not working.
* Fixed issue detecting if log parameters have changed since previous deployment.

## Release 2024-10-09

Expand Down
2 changes: 1 addition & 1 deletion aws-extensions-for-dotnet-cli.sln
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Amazon.ECS.Tools.Test", "te
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{90827CB6-7488-4B53-904B-F045BCC754F3}"
ProjectSection(SolutionItems) = preProject
CHANGELOG.md = CHANGELOG.md
README.md = README.md
RELEASE.CHANGELOG.md = RELEASE.CHANGELOG.md
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Amazon.Lambda.Tools", "src\Amazon.Lambda.Tools\Amazon.Lambda.Tools.csproj", "{26CEBD54-FC5B-4437-A009-6643EE849413}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ private UpdateFunctionConfigurationRequest CreateConfigurationRequestIfDifferent
request.LoggingConfig = new LoggingConfig();
}

if (!string.Equals(request.LoggingConfig.LogFormat, existingConfiguration.LoggingConfig?.LogFormat, StringComparison.Ordinal))
if (!string.Equals(logFormat, existingConfiguration.LoggingConfig?.LogFormat, StringComparison.Ordinal))
{
request.LoggingConfig.LogFormat = logFormat;
different = true;
Expand All @@ -666,7 +666,7 @@ private UpdateFunctionConfigurationRequest CreateConfigurationRequestIfDifferent
request.LoggingConfig = new LoggingConfig();
}

if (!string.Equals(request.LoggingConfig.ApplicationLogLevel, existingConfiguration.LoggingConfig?.ApplicationLogLevel, StringComparison.Ordinal))
if (!string.Equals(logApplicationLevel, existingConfiguration.LoggingConfig?.ApplicationLogLevel, StringComparison.Ordinal))
{
request.LoggingConfig.ApplicationLogLevel = logApplicationLevel;
different = true;
Expand All @@ -681,7 +681,7 @@ private UpdateFunctionConfigurationRequest CreateConfigurationRequestIfDifferent
request.LoggingConfig = new LoggingConfig();
}

if (!string.Equals(request.LoggingConfig.SystemLogLevel, existingConfiguration.LoggingConfig?.SystemLogLevel, StringComparison.Ordinal))
if (!string.Equals(logSystemLevel, existingConfiguration.LoggingConfig?.SystemLogLevel, StringComparison.Ordinal))
{
request.LoggingConfig.SystemLogLevel = logSystemLevel;
different = true;
Expand All @@ -696,7 +696,7 @@ private UpdateFunctionConfigurationRequest CreateConfigurationRequestIfDifferent
request.LoggingConfig = new LoggingConfig();
}

if (!string.Equals(request.LoggingConfig.LogGroup, existingConfiguration.LoggingConfig?.LogGroup, StringComparison.Ordinal))
if (!string.Equals(logGroup, existingConfiguration.LoggingConfig?.LogGroup, StringComparison.Ordinal))
{
request.LoggingConfig.LogGroup = logGroup;
different = true;
Expand Down

0 comments on commit 71d4a6a

Please sign in to comment.