Commit 5a0e259
authored
Fix StackOverflow produced by guest logging (#1067)
* Fix StackOverflow produced by guest logging
Signed-off-by: Doru Blânzeanu <[email protected]>
* [guest] Enable `log` feature for `tracing` crate in simpleguest
- The rationale for this change is to allow hyperlight core to test this
scenario and catch potential issues early, not downstream.
- This makes all trace spans to be created as logs when there is no
subscriber installed on the guest (when `trace_guest` not enabled)
- The `log_messages` integration test verifies that the guest correctly
behaves when `RUST_LOG` enables guest logs.
Signed-off-by: Doru Blânzeanu <[email protected]>
---------
Signed-off-by: Doru Blânzeanu <[email protected]>1 parent 09346ac commit 5a0e259
File tree
5 files changed
+16
-5
lines changed- src
- hyperlight_guest/src/guest_handle
- hyperlight_host/tests
- tests/rust_guests/simpleguest
5 files changed
+16
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
| 169 | + | |
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
93 | 92 | | |
94 | 93 | | |
95 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
727 | 727 | | |
728 | 728 | | |
729 | 729 | | |
730 | | - | |
731 | | - | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
732 | 743 | | |
733 | 744 | | |
734 | 745 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
0 commit comments