Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v16] fix: drop reserved source key in slog.Logger #43389

Merged
merged 1 commit into from
Jun 22, 2024

Conversation

tigrato
Copy link
Contributor

@tigrato tigrato commented Jun 22, 2024

Backport #43388 to branch/v16

The `source` key in slog.Logger is a reserved key and should not be used because it causes a panic.
This commit removes the `source` key from the logger.

Note: We already enforce the forbidden keys as per #42049.
However, our lint jobs currently only run on Ubuntu runners, while the code in question compiles for Darwin targets only.

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>
@tigrato tigrato added the no-changelog Indicates that a PR does not require a changelog entry label Jun 22, 2024
@github-actions github-actions bot requested review from avatus and rosstimothy June 22, 2024 16:59
@public-teleport-github-review-bot public-teleport-github-review-bot bot removed the request for review from rosstimothy June 22, 2024 17:21
@tigrato tigrato added this pull request to the merge queue Jun 22, 2024
Merged via the queue into branch/v16 with commit d811b08 Jun 22, 2024
37 checks passed
@tigrato tigrato deleted the bot/backport-43388-branch/v16 branch June 22, 2024 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport no-changelog Indicates that a PR does not require a changelog entry size/sm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants