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

[mysql plugin] use --log-error instead of 2> #1733

Merged
merged 1 commit into from
Jan 18, 2024
Merged

Conversation

Lagoja
Copy link
Contributor

@Lagoja Lagoja commented Jan 18, 2024

Summary

This PR fixes a permissions issue that can arise when running the MySQL plugin in CI.

Previous versions of the mysql plugin were creating error logs in the virtenv directory by routing stderr to a file. While this kept the error logs local, mysql would still create a log file in /var/logs. This worked fine on user machines, but could hit permission errors in CI.

This update now creates the error log using the --log-error flag. This should override any log creation in /var, which will avoid the permissions error.

How was it tested?

Tested locally, verified the service was still working and error logs were being captured

@Lagoja Lagoja requested a review from mikeland73 January 18, 2024 17:14
@Lagoja Lagoja merged commit af58be9 into main Jan 18, 2024
24 checks passed
@Lagoja Lagoja deleted the jl/fix-mysql-plugin branch January 18, 2024 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants