Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upSend log messages to the constellation #11841
Conversation
highfive
commented
Jun 23, 2016
|
Heads up! This PR modifies the following files:
|
1673b5f
to
cdcc1e8
|
Rebased. |
|
|
|
rust-lang/log#86 has landed, it just needs to make its way to crates.io. |
cdcc1e8
to
ad862c0
|
Rebased. |
ad862c0
to
0ce4055
|
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.
| @@ -304,6 +312,97 @@ enum ExitPipelineMode { | |||
| Force, | |||
| } | |||
|
|
|||
| /// A logger directed at the constellation from content processes | |||
| #[derive(Clone)] | |||
| pub struct FromScriptLogger { | |||
This comment has been minimized.
This comment has been minimized.
Manishearth
Jul 15, 2016
Member
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 |
|
|
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 -->
|
|
highfive
commented
Jul 15, 2016
|
|
OK, that's weird, did I accidentally fix a bug? |
|
IRC conversation: http://logs.glob.uno/?c=mozilla%23servo&s=15+Jul+2016&e=15+Jul+2016#c480756 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
|
Squashed. @bors-servo r=Manishearth (http://logs.glob.uno/?c=mozilla%23servo&s=15+Jul+2016&e=15+Jul+2016#c480930) |
|
|
|
|
|
|
@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 -->
|
|
…by integrated logging and issue reporting.
asajeffrey commentedJun 23, 2016
•
edited by larsbergstrom
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