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

fix: ignore log lines in avd_list, fix docs.rs build #414

Merged
merged 1 commit into from
Oct 23, 2024

Conversation

amrbashir
Copy link
Member

No description provided.

Copy link
Contributor

Package Changes Through bbf9812

There are 1 changes which include cargo-mobile2 with patch

Planned Package Versions

The following package releases are the planned based on the context of changes in this pull request.

package current next
cargo-mobile2 0.17.3 0.17.4

Add another change file through the GitHub UI by following this link.


Read about change files or the docs at github.com/jbolda/covector

@@ -31,3 +31,9 @@ pub fn avd_list(env: &Env) -> Result<BTreeSet<Emulator>, Error> {
})
.map_err(Error::ListAvdsFailed)
}

fn is_emulator_log_line(name: &str) -> bool {
["INFO |", "WARNING |", "ERROR |"]
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
["INFO |", "WARNING |", "ERROR |"]
["INFO", "WARNING", "ERROR"]

just in case the tabulation changes between OS or some other formatting condition..

Copy link
Member Author

Choose a reason for hiding this comment

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

I find that hard to change but if it ever does, we can always adapt later.

I included the space and |, to ensure that it is in fact a log line and not just weirdly named emulator, because you can name an emulator INFO but you can't have | in the name.

Maybe we can change the detection to check for | and that would be enough?

Copy link
Member

Choose a reason for hiding this comment

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

just leave it as is then, they might also change the output layout in the future anyways

@amrbashir amrbashir merged commit c4d420f into dev Oct 23, 2024
12 checks passed
@amrbashir amrbashir deleted the fix/avd-list-loglines branch October 23, 2024 13:10
@github-actions github-actions bot mentioned this pull request Oct 16, 2024
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.

2 participants