diff --git a/SharedLibraryCore/SharedLibraryCore.csproj b/SharedLibraryCore/SharedLibraryCore.csproj index f9c4eb754..8130b41c0 100644 --- a/SharedLibraryCore/SharedLibraryCore.csproj +++ b/SharedLibraryCore/SharedLibraryCore.csproj @@ -9,7 +9,7 @@ Forever None Debug;Release;Prerelease false - 8.0 + default IW4MAdmin https://github.com/RaidMax/IW4M-Admin/ https://www.raidmax.org/IW4MAdmin/ diff --git a/SharedLibraryCore/Utilities.cs b/SharedLibraryCore/Utilities.cs index 071020d18..51fdf6fe9 100644 --- a/SharedLibraryCore/Utilities.cs +++ b/SharedLibraryCore/Utilities.cs @@ -125,28 +125,6 @@ namespace SharedLibraryCore return str.Length > maxLength ? $"{str.Substring(0, maxLength - 3)}..." : str; } - /// - /// helper method to get the information about an exception and inner exceptions - /// - /// - /// - public static string GetExceptionInfo(this Exception ex) - { - var sb = new StringBuilder(); - var depth = 0; - while (ex != null) - { - sb.AppendLine($"Exception[{depth}] Name: {ex.GetType().FullName}"); - sb.AppendLine($"Exception[{depth}] Message: {ex.Message}"); - sb.AppendLine($"Exception[{depth}] Call Stack: {ex.StackTrace}"); - sb.AppendLine($"Exception[{depth}] Source: {ex.Source}"); - depth++; - ex = ex.InnerException; - } - - return sb.ToString(); - } - public static Permission MatchPermission(string str) { var lookingFor = str.ToLower(); @@ -1190,4 +1168,4 @@ namespace SharedLibraryCore return allRules[index]; } } -} \ No newline at end of file +}