Skip to content

fix(custom-resources): use loggingFormat instead of deprecated logFormat#35015

Merged
mergify[bot] merged 3 commits intoaws:mainfrom
pahud:fix-35002-custom-resource-logging-format
Jul 29, 2025
Merged

fix(custom-resources): use loggingFormat instead of deprecated logFormat#35015
mergify[bot] merged 3 commits intoaws:mainfrom
pahud:fix-35002-custom-resource-logging-format

Conversation

@pahud
Copy link
Copy Markdown
Contributor

@pahud pahud commented Jul 19, 2025

Use loggingFormat instead of deprecated logFormat in the Provider class

Issue # (if applicable)

Closes #35002

Reason for this change

The logFormat property in Lambda Function is deprecated and will be removed in the next major release. This change updates the Provider class to use the recommended loggingFormat property instead, eliminating deprecation warnings.

Description of changes

  • Updated the Provider class in provider.ts to use loggingFormat instead of the deprecated logFormat property
  • Added a test in provider.test.ts to verify that no deprecation warnings are emitted when creating a Provider
  • Ensured backward compatibility by maintaining the same functionality

This change is minimal and focused on replacing the deprecated property with its recommended alternative. The functionality remains the same, but the code now follows best practices and avoids deprecation warnings.

Describe any new or updated permissions being added

No new or updated IAM permissions are needed for this change.

Description of how you validated changes

  • Added a unit test that verifies no deprecation warnings are emitted when using the Provider class
  • Manually verified that the Provider class still functions correctly with the new property
  • Ensured backward compatibility by testing with existing code

Checklist


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@aws-cdk-automation aws-cdk-automation requested a review from a team July 19, 2025 03:51
@github-actions github-actions bot added bug This issue is a bug. effort/small Small work item – less than a day of effort p2 labels Jul 19, 2025
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Jul 19, 2025
@pahud pahud marked this pull request as ready for review July 19, 2025 04:39
@aws-cdk-automation aws-cdk-automation added the pr/needs-maintainer-review This PR needs a review from a Core Team Member label Jul 23, 2025
@Abogical Abogical self-assigned this Jul 28, 2025
@Abogical Abogical changed the title chore(custom-resources): use loggingFormat instead of deprecated logFormat fix(custom-resources): use loggingFormat instead of deprecated logFormat Jul 28, 2025
@Abogical Abogical added the pr-linter/exempt-integ-test The PR linter will not require integ test changes label Jul 28, 2025
@aws-cdk-automation aws-cdk-automation removed the pr/needs-maintainer-review This PR needs a review from a Core Team Member label Jul 28, 2025
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Jul 28, 2025

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Jul 28, 2025

This pull request has been removed from the queue for the following reason: pull request branch update failed.

The pull request can't be updated.

You should update or rebase your pull request manually. If you do, this pull request will automatically be requeued once the queue conditions match again.
If you think this was a flaky issue, you can requeue the pull request, without updating it, by posting a @mergifyio requeue comment.

@Abogical
Copy link
Copy Markdown
Member

@Mergifyio rebase

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Jul 28, 2025

rebase

✅ Branch has been successfully rebased

@Abogical Abogical force-pushed the fix-35002-custom-resource-logging-format branch from 42c085b to 4ad27f2 Compare July 28, 2025 15:55
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Jul 28, 2025

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Jul 28, 2025

This pull request has been removed from the queue for the following reason: pull request branch update failed.

The pull request can't be updated.

You should update or rebase your pull request manually. If you do, this pull request will automatically be requeued once the queue conditions match again.
If you think this was a flaky issue, you can requeue the pull request, without updating it, by posting a @mergifyio requeue comment.

@Abogical
Copy link
Copy Markdown
Member

@Mergifyio rebase

pahud added 2 commits July 29, 2025 07:08
Use loggingFormat instead of deprecated logFormat in the Provider class to avoid deprecation warnings. Added a test to verify that no deprecation warnings are emitted.
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Jul 29, 2025

rebase

✅ Branch has been successfully rebased

@Abogical Abogical force-pushed the fix-35002-custom-resource-logging-format branch from 4ad27f2 to 997f0c9 Compare July 29, 2025 07:08
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Jul 29, 2025

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Jul 29, 2025

This pull request has been removed from the queue for the following reason: pull request dequeued.

Pull request #35015 has been dequeued. The pull request could not be merged. This could be related to an activated branch protection or ruleset rule that prevents us from merging. (details: Required status check "build" is failing.).

You should look at the reason for the failure and decide if the pull request needs to be fixed or if you want to requeue it.
If you do update this pull request, it will automatically be requeued once the queue conditions match again.
If you think this was a flaky issue instead, you can requeue the pull request, without updating it, by posting a @mergifyio requeue comment.

@Abogical
Copy link
Copy Markdown
Member

@Mergifyio requeue

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Jul 29, 2025

requeue

✅ The queue state of this pull request has been cleaned. It can be re-embarked automatically

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Jul 29, 2025

This pull request has been removed from the queue for the following reason: pull request dequeued.

Pull request #35015 has been dequeued. The pull request could not be merged. This could be related to an activated branch protection or ruleset rule that prevents us from merging. (details: Required status check "build" is queued.).

You should look at the reason for the failure and decide if the pull request needs to be fixed or if you want to requeue it.
If you do update this pull request, it will automatically be requeued once the queue conditions match again.
If you think this was a flaky issue instead, you can requeue the pull request, without updating it, by posting a @mergifyio requeue comment.

@Abogical
Copy link
Copy Markdown
Member

@Mergifyio requeue

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Jul 29, 2025

requeue

✅ The queue state of this pull request has been cleaned. It can be re-embarked automatically

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Jul 29, 2025

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@aws-cdk-automation
Copy link
Copy Markdown
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
  • Commit ID: fbde231
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify mergify bot merged commit 81fe660 into aws:main Jul 29, 2025
20 checks passed
@github-actions
Copy link
Copy Markdown
Contributor

Comments on closed issues and PRs are hard for our team to see.
If you need help, please open a new issue that references this one.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 29, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug This issue is a bug. contribution/core This is a PR that came from AWS. effort/small Small work item – less than a day of effort p2 pr-linter/exempt-integ-test The PR linter will not require integ test changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

(custom-resource): Custom Resource provider is using deprecated LogFormat parameter

3 participants