Skip to content

Conversation

@snowp
Copy link
Contributor

@snowp snowp commented Oct 9, 2025

Now that we initialize logging during JNI_OnLoad we need to configure RUST_LOG early enough in order to be picked up by this initialization code

This also changes the build configuration so that we only optimize the release build, as setting opt-level=z seems to disable debug_assertions which compiles out low level logging. As a bonus this should speed up dev builds

snowp added 2 commits October 9, 2025 08:38
Now that we initialize logging during JNI_OnLoad we need to configure
RUST_LOG early enough in order to be picked up by this initialization
code

// This needs to happen before loading the native library as we set
// up logging during library initialization.
setUpInternalLogging(appContext)
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you remove also from LoggerImpl constructor?

@github-actions
Copy link

github-actions bot commented Oct 9, 2025

Size Comparison Report (x86_64)

Metric APK (KB) SO (KB)
Baseline 3318 1204
Current 3318 1204
Difference 0 0

APK size unchanged. SO size unchanged.

@snowp snowp merged commit a95eaaf into main Oct 9, 2025
15 checks passed
@snowp snowp deleted the reorder-logger-init branch October 9, 2025 16:50
@github-actions github-actions bot locked and limited conversation to collaborators Oct 9, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants