Commit 6bcb7e2
fix(init): emit captured logs verbatim; do not rewrite bare CR to LF
Commit 9b54e66 rewrote every bare carriage return in the captured runtime output to
a line feed, intending to render multi-line init tracebacks across lines. But AWS
keeps a bare CR inside a single CloudWatch log event (records split on LF only), and
LocalStack's log ingestion likewise splits on "\n". The conversion therefore wrongly
split any record containing a bare CR into multiple events, breaking the AWS-validated
TestCloudwatchLogs::test_multi_line_prints (a user `print("a\rb")` was emitted as two
events "a" and "b" instead of one event "a\rb").
Emit the runtime output verbatim. Verified: test_multi_line_prints and the full
TestLambdaErrors suite (incl. the runtime-exit/segfault error-reporting tests) are
both green.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent b350b50 commit 6bcb7e2
1 file changed
Lines changed: 6 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
50 | 46 | | |
51 | | - | |
| 47 | + | |
52 | 48 | | |
53 | 49 | | |
54 | 50 | | |
| |||
0 commit comments