mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
ohos/android: Redirect stdout/stderr to log
sink (#32858)
* ohos: redirect stdout/stderr to logging sink Based on the existing android `redirect_stdout_to_logcat` implementation, but using the safe abstractions from `nix` and dumping to the `log` sink, instead of directly writing the log. Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com> * android: Use new shared implementation for logcat redirection. Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com> * servoshell: Register cfg(production) Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com> * Update ports/servoshell/egl/log.rs Co-authored-by: Martin Robinson <mrobinson@igalia.com> Signed-off-by: Jonathan Schwender <55576758+jschwe@users.noreply.github.com> * Change info! to debug! to match original behavior on android Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com> --------- Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com> Signed-off-by: Jonathan Schwender <55576758+jschwe@users.noreply.github.com> Co-authored-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
353ceb0ffb
commit
97c84b6127
8 changed files with 127 additions and 93 deletions
|
@ -26,5 +26,5 @@ serde_json = { workspace = true }
|
|||
mach2 = "0.4"
|
||||
|
||||
[target.'cfg(all(target_os = "linux", not(any(target_arch = "arm", target_arch = "aarch64", target_env = "ohos"))))'.dependencies]
|
||||
nix = { version = "0.29", features = ["signal"] }
|
||||
nix = { workspace = true, features = ["signal"] }
|
||||
unwind-sys = "0.1.4"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue