mirror of
https://github.com/servo/servo.git
synced 2025-06-29 11:33:39 +01:00
Auto merge of #21767 - jdm:androidlog, r=paulrouget
Enable use of RUST_LOG with mach run --android. This allows running `RUST_LOG=layout_thread ./mach run --android` and seeing the appropriate logging output appear in `./adb logcat`. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #21764 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/21767) <!-- Reviewable:end -->
This commit is contained in:
commit
f313847b6b
7 changed files with 31 additions and 15 deletions
|
@ -99,6 +99,9 @@ class PostBuildCommands(CommandBase):
|
|||
]
|
||||
json_params = shell_quote(json.dumps(params))
|
||||
extra = "-e servoargs " + json_params
|
||||
rust_log = env.get("RUST_LOG", None)
|
||||
if rust_log:
|
||||
extra += " -e servolog " + rust_log
|
||||
script += [
|
||||
"am start " + extra + " com.mozilla.servo/com.mozilla.servo.MainActivity",
|
||||
"sleep 0.5",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue