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

#1687 Fix native image build with CloudWatchLoggingAppender #1688

Merged
merged 2 commits into from
Apr 19, 2023

Conversation

andriy-dmytruk
Copy link
Contributor

  • Postpone the dispatch thread creation to runtime. Start the thread to send logs to cloudwatch only when append method is called, instead of start. This way the thread is not started during build time, which is unsupported by native image. (See Cloudwatch logger appender doesn't work with native image #1687 for details).
  • Create dispatchOnStart property to return to previous behavior if needed.

- Start the thread to send logs to cloudwatch only when append command is called, so it is not started during build time
- Create dispatchOnStart property to return to previous behavior
@andriy-dmytruk andriy-dmytruk changed the base branch from master to 3.17.x April 18, 2023 22:36
@sonarcloud
Copy link

sonarcloud bot commented Apr 18, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

87.0% 87.0% Coverage
0.0% 0.0% Duplication

@andriy-dmytruk
Copy link
Contributor Author

@graemerocher Can we merge it?

@graemerocher graemerocher merged commit 470b6bb into 3.17.x Apr 19, 2023
@graemerocher graemerocher deleted the cloudwatch-appender-native-image branch April 19, 2023 14:00
@graemerocher graemerocher added type: improvement A minor improvement to an existing feature type: bug Something isn't working relates-to: graal and removed type: bug Something isn't working labels Apr 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
relates-to: graal type: improvement A minor improvement to an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants