Skip to content

If we delete dump files, log as such#59906

Merged
jasonmalinowski merged 1 commit intodotnet:mainfrom
jasonmalinowski:tweak-dump-limiter
Mar 3, 2022
Merged

If we delete dump files, log as such#59906
jasonmalinowski merged 1 commit intodotnet:mainfrom
jasonmalinowski:tweak-dump-limiter

Conversation

@jasonmalinowski
Copy link
Copy Markdown
Member

No description provided.

@jasonmalinowski jasonmalinowski requested a review from a team as a code owner March 3, 2022 01:15
@ghost ghost added the Area-Infrastructure label Mar 3, 2022
@jasonmalinowski jasonmalinowski self-assigned this Mar 3, 2022
currentTotalSize += fileSizeInMegabytes;
if (currentTotalSize > MaxTotalDumpSizeInMegabytes)
{
ConsoleUtil.WriteLine($"Deleting {dumpFile} because we have exceeded our total dump size of {MaxTotalDumpSizeInMegabytes} megabytes.");
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
ConsoleUtil.WriteLine($"Deleting {dumpFile} because we have exceeded our total dump size of {MaxTotalDumpSizeInMegabytes} megabytes.");
ConsoleUtil.WriteLine($"Deleting '{dumpFile}' because we have exceeded our total dump size of {MaxTotalDumpSizeInMegabytes} megabytes.");

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Good suggestion, will merge now and fix to get this in soon.

@jasonmalinowski jasonmalinowski disabled auto-merge March 3, 2022 18:49
@jasonmalinowski jasonmalinowski merged commit de90240 into dotnet:main Mar 3, 2022
@jasonmalinowski jasonmalinowski deleted the tweak-dump-limiter branch March 3, 2022 18:49
@ghost ghost added this to the Next milestone Mar 3, 2022
@allisonchou allisonchou modified the milestones: Next, 17.2.P3 Mar 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants