Skip to content

Read max 1MB data from panic.log#1029

Merged
ambarve merged 1 commit intomicrosoft:masterfrom
ambarve:shim_panic_limit
May 18, 2021
Merged

Read max 1MB data from panic.log#1029
ambarve merged 1 commit intomicrosoft:masterfrom
ambarve:shim_panic_limit

Conversation

@ambarve
Copy link
Contributor

@ambarve ambarve commented May 18, 2021

Panic.log file can get very large if there are other log statements writing to
stderr. Avoid reading the entire file

Signed-off-by: Amit Barve ambarve@microsoft.com

@ambarve ambarve requested a review from a team as a code owner May 18, 2021 19:44
@ambarve
Copy link
Contributor Author

ambarve commented May 18, 2021

This PR adds the same limit as that of kevpar/containerd#16 when reading from panic.log file

@ambarve ambarve force-pushed the shim_panic_limit branch from b78af96 to e174824 Compare May 18, 2021 20:08
Copy link
Contributor

@dcantah dcantah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm besides the last comment!

Panic.log file can get very large if there are other log statements writing to
stderr. Avoid reading the entire file

Signed-off-by: Amit Barve <ambarve@microsoft.com>
@ambarve ambarve force-pushed the shim_panic_limit branch from e174824 to e43978f Compare May 18, 2021 22:19
Copy link

@katiewasnothere katiewasnothere left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants