From 9daa61084e605b422c85f6bb3f78237c61ef736d Mon Sep 17 00:00:00 2001 From: Ryan Brandenburg Date: Fri, 21 Apr 2017 09:26:04 -0700 Subject: [PATCH] Make DataStoreErrorLogger._log static --- .../DataStoreErrorLogger.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore/DataStoreErrorLogger.cs b/src/Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore/DataStoreErrorLogger.cs index 09a67612..2d4b44cc 100644 --- a/src/Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore/DataStoreErrorLogger.cs +++ b/src/Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore/DataStoreErrorLogger.cs @@ -18,7 +18,7 @@ namespace Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore public class DataStoreErrorLogger : ILogger { #if NETSTANDARD1_3 - private readonly AsyncLocal _log = new AsyncLocal(); + private static readonly AsyncLocal _log = new AsyncLocal(); #else private static readonly string ContextName = "__DataStoreErrorLog" + AppDomain.CurrentDomain.Id; #endif