Commit 4cce4cd
committed
fix: remove progress and control codes from log output
This commit removes some not very useful output from the
`/var/log/user-data.log` output that looks like this:
```
1 file(s) remaining ^MCompleted 6.2 MiB/214.5 MiB (22.3 MiB/s) with 1
file(s) remaining ^MCompleted 6.5 MiB/214.5 MiB (23.1 MiB/s) with 1
file(s) remaining ^MCompleted 6.8 MiB/214.5 MiB (23.9 MiB/s) with 1
file(s) remaining
```
This goes on for potentially several screens worth of log output.
It also similar progress bar output from the IMDS token fetching, and as
a bonus side effect, prevents the token itself from being persisted to the
logs.
Finally, quotes are added around some of the values returned by curl to
prevent bash from splitting it if there's whitespace in the return
value and subsequent unintentional behaviour.1 parent 6d3af4c commit 4cce4cd
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
0 commit comments