Make DataStoreErrorLogger._log static

This commit is contained in:
Ryan Brandenburg 2017-04-21 09:26:04 -07:00
parent e3180baea5
commit 9daa61084e
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ namespace Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore
public class DataStoreErrorLogger : ILogger public class DataStoreErrorLogger : ILogger
{ {
#if NETSTANDARD1_3 #if NETSTANDARD1_3
private readonly AsyncLocal<DataStoreErrorLog> _log = new AsyncLocal<DataStoreErrorLog>(); private static readonly AsyncLocal<DataStoreErrorLog> _log = new AsyncLocal<DataStoreErrorLog>();
#else #else
private static readonly string ContextName = "__DataStoreErrorLog" + AppDomain.CurrentDomain.Id; private static readonly string ContextName = "__DataStoreErrorLog" + AppDomain.CurrentDomain.Id;
#endif #endif