Repository navigation
Send log messages to the constellation - #11841
Conversation
|
Heads up! This PR modifies the following files:
|
1673b5f to
cdcc1e8
Compare
|
Rebased. |
|
☔ The latest upstream changes (presumably #12178) made this pull request unmergeable. Please resolve the merge conflicts. |
|
rust-lang/log#86 has landed, it just needs to make its way to crates.io. |
cdcc1e8 to
ad862c0
Compare
|
Rebased. |
ad862c0 to
0ce4055
Compare
|
env_logger 0.3.4 is now out, so this can merge. r? @Ms2ger |
…by integrated logging and issue reporting.
…by integrated logging and issue reporting.
|
|
||
| /// A logger directed at the constellation from content processes | ||
| #[derive(Clone)] | ||
| pub struct FromScriptLogger { |
There was a problem hiding this comment.
We could probably have a FromLogger<T> struct with a common Log impl, where T is FromFooMsg, and implements a trait which provides a get_msg(Option<PipelineId>, Option<String>, LogEntry) -> Self method
|
r=me with or without that trait abstraction |
|
I think since there's only two instances, the extra level of generality won't buy us that much. Thanks for looking the code over! @bors-servo r=Manishearth |
|
📌 Commit bc1dd50 has been approved by |
Send log messages to the constellation <!-- Please describe your changes on the following line: --> Send all warnings and errors to the constellation. Warnings are bufferred up, and included in any subsequent error reports. Errors are reported in the same way as panics. Note that this can't merge yet, as it needs rust-lang/log#86 to land. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #11776 (github issue number if applicable). - [X] These changes do not require tests because we don't test crash reporting. <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11841) <!-- Reviewable:end -->
|
💔 Test failed - linux-rel |
|
|
OK, that's weird, did I accidentally fix a bug? |
|
TL;DR: when logs are reported to the constellation, we can check to see if the thread has panicked, and report |
|
@Manishearth care to look over that last commit? |
eccd395 to
4442274
Compare
|
📌 Commit 4442274 has been approved by |
|
💡 This pull request was already approved, no need to approve it again.
|
|
📌 Commit 4442274 has been approved by |
|
@bors-servo retry
|
Send log messages to the constellation <!-- Please describe your changes on the following line: --> Send all warnings and errors to the constellation. Warnings are bufferred up, and included in any subsequent error reports. Errors are reported in the same way as panics. Note that this can't merge yet, as it needs rust-lang/log#86 to land. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #11776 (github issue number if applicable). - [X] These changes do not require tests because we don't test crash reporting. <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11841) <!-- Reviewable:end -->
|
☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt, windows |
…by integrated logging and issue reporting.
Send all warnings and errors to the constellation. Warnings are bufferred up, and included in any subsequent error reports. Errors are reported in the same way as panics.
Note that this can't merge yet, as it needs rust-lang/log#86 to land.
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is