diff --git a/src/NzbDrone.Core.Test/InstrumentationTests/DatabaseTargetFixture.cs b/src/NzbDrone.Core.Test/InstrumentationTests/DatabaseTargetFixture.cs index c0cc34b57..ea4a63bae 100644 --- a/src/NzbDrone.Core.Test/InstrumentationTests/DatabaseTargetFixture.cs +++ b/src/NzbDrone.Core.Test/InstrumentationTests/DatabaseTargetFixture.cs @@ -133,7 +133,6 @@ private void VerifyLog(Log logItem, LogLevel level) logItem.Time.Should().BeWithin(TimeSpan.FromSeconds(2)); logItem.Logger.Should().Be(this.GetType().Name); logItem.Level.Should().Be(level.Name); - logItem.Method.Should().Be(new StackTrace().GetFrame(1).GetMethod().Name); _logger.Name.Should().EndWith(logItem.Logger); } } diff --git a/src/NzbDrone.Core/Datastore/Migration/064_add_remove_method_from_logs.cs b/src/NzbDrone.Core/Datastore/Migration/064_add_remove_method_from_logs.cs new file mode 100644 index 000000000..2fd04ea97 --- /dev/null +++ b/src/NzbDrone.Core/Datastore/Migration/064_add_remove_method_from_logs.cs @@ -0,0 +1,14 @@ +using FluentMigrator; +using NzbDrone.Core.Datastore.Migration.Framework; + +namespace NzbDrone.Core.Datastore.Migration +{ + [Migration(64)] + public class remove_method_from_logs : NzbDroneMigrationBase + { + protected override void LogDbUpgrade() + { + Delete.Column("Method").FromTable("Logs"); + } + } +} diff --git a/src/NzbDrone.Core/Instrumentation/DatabaseTarget.cs b/src/NzbDrone.Core/Instrumentation/DatabaseTarget.cs index cc0fc0ccb..4c9ed9eda 100644 --- a/src/NzbDrone.Core/Instrumentation/DatabaseTarget.cs +++ b/src/NzbDrone.Core/Instrumentation/DatabaseTarget.cs @@ -18,8 +18,8 @@ public class DatabaseTarget : TargetWithLayout, IHandle +