From 0368f2846e5a6fe326d74e0cbcd44cb738cfc4d8 Mon Sep 17 00:00:00 2001 From: Shannon Deminick Date: Sat, 13 Oct 2012 09:26:30 +0500 Subject: [PATCH] Removed erroneous logging on plugin manager. --- src/Umbraco.Core/PluginManager.cs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/Umbraco.Core/PluginManager.cs b/src/Umbraco.Core/PluginManager.cs index 3e00528dc0..24e3afcc27 100644 --- a/src/Umbraco.Core/PluginManager.cs +++ b/src/Umbraco.Core/PluginManager.cs @@ -134,11 +134,14 @@ namespace Umbraco.Core /// internal IEnumerable CreateInstances(IEnumerable types, bool throwException = false) { + //Have removed logging because it doesn't really need to be logged since the time taken is generally 0ms. + //we want to know if it fails ever, not how long it took if it is only 0. + var typesAsArray = types.ToArray(); - using (DisposableTimer.DebugDuration( - String.Format("Starting instantiation of {0} objects of type {1}", typesAsArray.Length, typeof(T).FullName), - String.Format("Completed instantiation of {0} objects of type {1}", typesAsArray.Length, typeof(T).FullName))) - { + //using (DisposableTimer.DebugDuration( + // String.Format("Starting instantiation of {0} objects of type {1}", typesAsArray.Length, typeof(T).FullName), + // String.Format("Completed instantiation of {0} objects of type {1}", typesAsArray.Length, typeof(T).FullName))) + //{ var instances = new List(); foreach (var t in typesAsArray) { @@ -159,7 +162,7 @@ namespace Umbraco.Core } } return instances; - } + //} } ///