Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Logs are not visible on with adb logcat #5667

Open
tomaka opened this issue Apr 16, 2020 · 2 comments
Open

Logs are not visible on with adb logcat #5667

tomaka opened this issue Apr 16, 2020 · 2 comments
Labels
I4-annoyance The client behaves within expectations, however this “expected behaviour” itself is at issue.

Comments

@tomaka
Copy link
Contributor

tomaka commented Apr 16, 2020

When running Substrate/Polkadot within an Android application, the logs are not visible. adb logcat doesn't let you see the stdout/stderr, instead it lets you see only logs that applications explicitly print through an Android-specific function.

I can see two solutions to this:

Solution 1

Modify this function to use the android_logger crate on Android (or a similar crate).

Solution 2

Embrace that the Substrate is supposed to be a library and make this configurable by the user.

@tomaka tomaka added the I4-annoyance The client behaves within expectations, however this “expected behaviour” itself is at issue. label Apr 16, 2020
@tomaka
Copy link
Contributor Author

tomaka commented Apr 16, 2020

This might be a low priority issue, or even get closed, as there are ways from the Java/Kotlin code to bypass that and retrieve the process's stdout/stderr.

@hanwencheng
Copy link

The output stream could be captured on android by getErrorStream for Java or process.errorStream on kotlin

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
I4-annoyance The client behaves within expectations, however this “expected behaviour” itself is at issue.
Projects
None yet
Development

No branches or pull requests

2 participants