servo/ports/servoshell
Jonathan Schwender 97c84b6127
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>
2024-08-15 09:26:03 +00:00
..
desktop build(deps): bump windows-sys from 0.52.0 to 0.59.0 (#32982) 2024-08-09 06:33:26 +00:00
egl ohos/android: Redirect stdout/stderr to log sink (#32858) 2024-08-15 09:26:03 +00:00
platform minibrowser: implement HiDPI support (#30343) 2023-09-14 13:24:38 +00:00
backtrace.rs Add OpenHarmony support to servoshell (#32594) 2024-06-28 12:51:50 +00:00
build.rs Set the cfg properly for the production-stripped profile (#32991) 2024-08-09 09:16:51 +00:00
Cargo.toml ohos/android: Redirect stdout/stderr to log sink (#32858) 2024-08-15 09:26:03 +00:00
crash_handler.rs testing: Trigger a crash more reliably when panicking and hard fail is active (#32947) 2024-08-06 17:43:06 +00:00
lib.rs Add OpenHarmony support to servoshell (#32594) 2024-06-28 12:51:50 +00:00
main.rs Add OpenHarmony support to servoshell (#32594) 2024-06-28 12:51:50 +00:00
panic_hook.rs testing: Trigger a crash more reliably when panicking and hard fail is active (#32947) 2024-08-06 17:43:06 +00:00
parser.rs android: Use location_bar_input_to_url instead of re-implementing (#32586) 2024-06-24 15:25:07 +00:00
prefs.rs Enable debug assertions for all builds other than official releases (#30509) 2023-10-26 08:22:14 +00:00
resources.rs Dont use lazy static to construct mutexes (#33047) 2024-08-14 13:42:01 +00:00
test.rs clippy: fix warnings on modules outside components (#31567) 2024-03-07 23:42:39 +00:00