Skip to content

Commit

Permalink
Optimized Logging Messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Weatherlights committed Feb 7, 2022
1 parent 2f5737d commit f03d762
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
Binary file modified Code/Program/.vs/NetworkShareMapper/v17/.suo
Binary file not shown.
4 changes: 2 additions & 2 deletions Code/Program/NetworkShareMapper/NetworkDriveMapping.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@ public void Execute()
}
catch (Exception e)
{
myLogWriter.LogWrite("Failed to map networkdrive " + policy.driveLetter + " to " + policy.uncPath + "\nException: " + e.Message + "\n" + e.StackTrace,2);
myLogWriter.LogWrite("Failed to map networkdrive " + policy.driveLetter + " to " + policy.uncPath + "\nException: " + e.ToString(), 2);
// do nothing
}
}
}
catch (Exception e)
{
myLogWriter.LogWrite("An unknown error occured.\nException: " + e.Message + "\n" + e.StackTrace, 3);
myLogWriter.LogWrite("An unknown error occured.\nException: " + e.ToString(), 3);
}
retryCount--;
} else
Expand Down
Binary file not shown.
Binary file not shown.

0 comments on commit f03d762

Please sign in to comment.