Commit 97e134a
Pack the native log tail into ExecutorchRuntimeException's message.
Summary: The fix changes the native log truncation from keeping the prefix (first 2048 characters) to keeping the suffix/tail (last 2048 characters) of the log string. This ensures that the most relevant recent log lines are preserved for diagnosing failures, rather than the older log entries at the beginning. using takeLast ensures we keep the most recent log lines which are most relevant for diagnosing failures
Reviewed By: SS-JIA
Differential Revision: D1071963961 parent 3b3f621 commit 97e134a
1 file changed
Lines changed: 24 additions & 6 deletions
File tree
- extension/android/executorch_android/src/main/java/org/pytorch/executorch
Lines changed: 24 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
132 | 150 | | |
133 | 151 | | |
0 commit comments