Repository navigation
Conversation
VectorContext.log handed the module's tag straight to logcat, and the daemon only copies an entry into the modules log when its tag is one of kModuleTags, so anything logged with a tag of its own went to logcat alone. The entry is now written under VectorContext and the module's tag goes into the message prefix, after the package name.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The libxposed
log(int, String, String, Throwable)writes "to the Xposed log", and its tag is any nullable string.VectorContext.logpasses that tag to logcat as it is, butlogcat.cpponly copies an entry into the modules log when its tag is one ofkModuleTags. So onlytag == nullreaches the modules log; with a tag of its own the entry stays in logcat and is not in the verbose log either, unless the tag happens to start withVectororLSPosed.I ran into it with YukiHookAPI's libxposed runtime, which logs hook callback exceptions under its own tag: none of them showed up in the manager.
The entry is now always written under
VectorContext, and the module's tag joins the package name in the prefix:With a null tag the line is the same as before (
com.example.module: message). The tag is no longer the logcat tag, sologcat -s MyTagwon't find these lines anymore, but it is still in every line, and the deprecatedlog(String)worked the same way, under a fixed tag.