Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read max 1MB data from panic.log #1029

Merged
merged 1 commit into from
May 18, 2021
Merged

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
Contributor

@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