You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: remove progress and control codes from log output (#4699)
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 removes a 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.
0 commit comments