diff --git a/src/umbraco.businesslogic/Log.cs b/src/umbraco.businesslogic/Log.cs index 6e0e2e1b28..ec06ac0174 100644 --- a/src/umbraco.businesslogic/Log.cs +++ b/src/umbraco.businesslogic/Log.cs @@ -175,13 +175,14 @@ namespace umbraco.BusinessLogic } catch (Exception e) { - Debug.WriteLine(e.ToString(), "Error"); - Trace.WriteLine(e.ToString()); + LogHelper.Error("An error occurred adding an audit trail log to the umbracoLog table", e); } } else { - LogHelper.Info(string.Format("Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: {0} | User: {1} | NodeId: {2} | Comment: {3}", type.ToString(), userId, nodeId.ToString(CultureInfo.InvariantCulture), comment)); + LogHelper.Info( + "Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: {0} | User: {1} | NodeId: {2} | Comment: {3}", + () => type.ToString(), () => userId, () => nodeId.ToString(CultureInfo.InvariantCulture), () => comment); } }