mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-14 02:44:52 +08:00
Adding log related to dynamic compilation
--HG-- branch : dev
This commit is contained in:
@@ -43,14 +43,14 @@ namespace Orchard.Environment.Extensions.Loaders {
|
||||
if (Disabled)
|
||||
return null;
|
||||
|
||||
//Logger.Information("Loading extension \"{0}\"", descriptor.Name);
|
||||
|
||||
var assembly = _assemblyLoader.Load(CoreAssemblyName);
|
||||
if (assembly == null) {
|
||||
Logger.Error("Core modules cannot be activated because assembly '{0}' could not be loaded", CoreAssemblyName);
|
||||
return null;
|
||||
}
|
||||
|
||||
Logger.Information("Loaded core module \"{0}\": assembly name=\"{1}\"", descriptor.Name, assembly.FullName);
|
||||
|
||||
return new ExtensionEntry {
|
||||
Descriptor = descriptor,
|
||||
Assembly = assembly,
|
||||
|
@@ -173,7 +173,8 @@ namespace Orchard.Environment.Extensions.Loaders {
|
||||
var assembly = _buildManager.GetCompiledAssembly(projectPath);
|
||||
if (assembly == null)
|
||||
return null;
|
||||
//Logger.Information("Loading extension \"{0}\": assembly name=\"{1}\"", descriptor.Name, assembly.GetName().Name);
|
||||
|
||||
Logger.Information("Loaded dynamic extension \"{0}\": assembly name=\"{1}\"", descriptor.Name, assembly.FullName);
|
||||
|
||||
return new ExtensionEntry {
|
||||
Descriptor = descriptor,
|
||||
|
@@ -197,7 +197,7 @@ namespace Orchard.Environment.Extensions.Loaders {
|
||||
if (assembly == null)
|
||||
return null;
|
||||
|
||||
//Logger.Information("Loading extension \"{0}\"", descriptor.Name);
|
||||
Logger.Information("Loaded pre-compiled extension \"{0}\": assembly name=\"{1}\"", descriptor.Name, assembly.FullName);
|
||||
|
||||
return new ExtensionEntry {
|
||||
Descriptor = descriptor,
|
||||
|
@@ -40,7 +40,6 @@ namespace Orchard.Environment.Extensions.Loaders {
|
||||
if ( _virtualPathProvider.FileExists(assemblyPath) )
|
||||
return null;
|
||||
|
||||
|
||||
return new ExtensionProbeEntry {
|
||||
Descriptor = descriptor,
|
||||
LastWriteTimeUtc = DateTime.MinValue,
|
||||
@@ -55,6 +54,8 @@ namespace Orchard.Environment.Extensions.Loaders {
|
||||
if (Disabled)
|
||||
return null;
|
||||
|
||||
Logger.Information("Loaded no-code theme \"{0}\"", descriptor.Name);
|
||||
|
||||
return new ExtensionEntry {
|
||||
Descriptor = descriptor,
|
||||
Assembly = GetType().Assembly,
|
||||
|
@@ -69,7 +69,7 @@ namespace Orchard.Environment.Extensions.Loaders {
|
||||
if (assembly == null)
|
||||
return null;
|
||||
|
||||
//Logger.Information("Loading extension \"{0}\"", descriptor.Name);
|
||||
Logger.Information("Loaded referenced extension \"{0}\": assembly name=\"{1}\"", descriptor.Name, assembly.FullName);
|
||||
|
||||
return new ExtensionEntry {
|
||||
Descriptor = descriptor,
|
||||
|
@@ -36,7 +36,7 @@ namespace Orchard.FileSystems.Dependencies {
|
||||
|
||||
public override string GetFileHash(string virtualPath, IEnumerable virtualPathDependencies) {
|
||||
var result = GetFileHashWorker(virtualPath, virtualPathDependencies);
|
||||
//Logger.Information("GetFileHash(\"{0}\"): {1}", virtualPath, result);
|
||||
Logger.Debug("GetFileHash(\"{0}\"): {1}", virtualPath, result);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
@@ -34,7 +34,7 @@ namespace Orchard.FileSystems.Dependencies {
|
||||
|
||||
public override string GetFileHash(string virtualPath, IEnumerable virtualPathDependencies) {
|
||||
var result = GetFileHashWorker(virtualPath, virtualPathDependencies);
|
||||
Logger.Information("GetFileHash(\"{0}\"): {1}", virtualPath, result);
|
||||
Logger.Debug("GetFileHash(\"{0}\"): {1}", virtualPath, result);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user