From b339fcbd82778f705cb84f69e24d7c732659e06e Mon Sep 17 00:00:00 2001 From: Taloth Saldono Date: Sat, 19 May 2018 21:01:07 +0200 Subject: [PATCH] Fixed mono debug check. --- src/NzbDrone.Core/HealthCheck/Checks/MonoDebugCheck.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/NzbDrone.Core/HealthCheck/Checks/MonoDebugCheck.cs b/src/NzbDrone.Core/HealthCheck/Checks/MonoDebugCheck.cs index 7d16854ad..3296c199f 100644 --- a/src/NzbDrone.Core/HealthCheck/Checks/MonoDebugCheck.cs +++ b/src/NzbDrone.Core/HealthCheck/Checks/MonoDebugCheck.cs @@ -1,6 +1,7 @@ using System.Diagnostics; using NLog; using NzbDrone.Common.EnvironmentInfo; +using NzbDrone.Common.Extensions; namespace NzbDrone.Core.HealthCheck.Checks { @@ -21,9 +22,9 @@ namespace NzbDrone.Core.HealthCheck.Checks { public virtual bool HasStackFrameInfo() { - var stackTrace = new StackTrace(); + var stackTrace = new StackTrace(true); - return stackTrace.FrameCount > 0 && stackTrace.GetFrame(0).GetFileColumnNumber() > 0; + return stackTrace.FrameCount > 0 && stackTrace.GetFrame(0).GetFileName().IsNotNullOrWhiteSpace(); } }