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

fix(azure blob scaler): initialize logger #3811 #3812

Conversation

tomasgiden
Copy link
Contributor

@tomasgiden tomasgiden commented Nov 3, 2022

The logger in Azure blob scaler was initialized but not saved. Thus, when logging an error, the logger segfaulted.

In addition, a very minor improvement of the log message which caused the segfault.

Note: I am not a GO developer and I have not tested it locally.

Checklist

Fixes #3811

Relates to #

@tomasgiden tomasgiden requested a review from a team as a code owner November 3, 2022 20:52
Copy link
Member

@JorTurFer JorTurFer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix! ❤️

pkg/scalers/azure_blob_scaler.go Outdated Show resolved Hide resolved
@JorTurFer
Copy link
Member

We also require that every commit is signed (DCO check), could you sign your commits?
https://github.com/kedacore/keda/blob/main/CONTRIBUTING.md#i-didnt-sign-my-commit-now-what

Signed-off-by: Tomas Gidén <tomas.giden@exciscope.com>
@tomasgiden tomasgiden force-pushed the fix/azure-blob-scaler-uninitialized-logger branch from f53c15c to 10dc282 Compare November 4, 2022 08:49
Copy link
Member

@JorTurFer JorTurFer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a ton for the fix! ❤️

@JorTurFer JorTurFer enabled auto-merge (squash) November 4, 2022 09:41
@JorTurFer JorTurFer merged commit f6adfb7 into kedacore:main Nov 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Segmentation violation
2 participants