Skip to content

Commit

Permalink
removed #if
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles Torre committed Jan 24, 2022
1 parent 6e4ea70 commit 8d66177
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions FabricHealer/Repair/Guan/CheckFolderSizePredicateType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,12 @@ private static async Task<double> GetFolderSizeAsync(string path, SizeUnit unit)
{
var dir = new DirectoryInfo(path);
double folderSizeInBytes = Convert.ToDouble(dir.EnumerateFiles("*", SearchOption.AllDirectories).Sum(fi => fi.Length));
#if DEBUG

await RepairTaskManager.TelemetryUtilities.EmitTelemetryEtwHealthEventAsync(
LogLevel.Info,
"CheckFolderSizePredicate::Size",
$"Directory {path} size: {folderSizeInBytes} bytes.",
RepairTaskManager.Token).ConfigureAwait(false);
#endif
if (unit == SizeUnit.GB)
{
return folderSizeInBytes / 1024 / 1024 / 1024;
Expand Down

0 comments on commit 8d66177

Please sign in to comment.