Update OrchardLog4netLogger.cs

Fix for "ValueFactory attempted to access the Value property of this instance"
This commit is contained in:
Another Developer
2015-10-05 11:19:20 -04:00
parent 73683ec057
commit e5e02bfd2a

View File

@@ -23,7 +23,7 @@ namespace Orchard.Logging {
Logger = logger;
Factory = factory;
_shellSettings = new Lazy<ShellSettings>(LoadSettings);
_shellSettings = new Lazy<ShellSettings>(LoadSettings, System.Threading.LazyThreadSafetyMode.PublicationOnly);
}
internal OrchardLog4netLogger() {
@@ -416,4 +416,4 @@ namespace Orchard.Logging {
}
}
}
}