Skip to content

refactor: fix verbose env var bug and simplify codebase#66

Open
KyleCB wants to merge 1 commit into
mainfrom
refactor/simplify-and-fix-code-quality
Open

refactor: fix verbose env var bug and simplify codebase#66
KyleCB wants to merge 1 commit into
mainfrom
refactor/simplify-and-fix-code-quality

Conversation

@KyleCB

@KyleCB KyleCB commented Apr 14, 2026

Copy link
Copy Markdown
Contributor

Fix a bug where NewVerbose() reads BPL_JAVA_NMT_ENABLED instead of BP_LOG_LEVEL, causing BP_LOG_LEVEL=DEBUG to have no effect at startup.

Also includes several cleanups found during code review:

  • calc/jvm_cacerts.go: replace isFileExist (TOCTOU + silent error discard) with direct os.Open
  • calc/java_tool_options.go: fix option deduplication to use exact token match instead of substring
  • calc/calculator.go: buildHelpers() now conditionally inserts OpenSSLCertificateLoader and NMT instead of constructing them unconditionally and then deleting
  • boot/spring_optimizer.go: remove single-entry inOrder/map dispatch, call WebApplicationType.Execute() directly

@KyleCB KyleCB requested a review from shihyuho April 14, 2026 11:03
Co-authored-by: Claude Sonnet 4.6 <no-reply@softleader.com.tw>
@KyleCB KyleCB force-pushed the refactor/simplify-and-fix-code-quality branch from 752e26f to afef5f2 Compare April 14, 2026 11:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant