mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Update OrchardLog4netLogger.cs
Fix for "ValueFactory attempted to access the Value property of this instance"
This commit is contained in:
@@ -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 {
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user