diff --git a/OpenContent/View.ascx.cs b/OpenContent/View.ascx.cs
index 46848fc5..549658d5 100644
--- a/OpenContent/View.ascx.cs
+++ b/OpenContent/View.ascx.cs
@@ -38,6 +38,8 @@
using Satrabel.OpenContent.Components.Datasource;
using IDataSource = Satrabel.OpenContent.Components.Datasource.IDataSource;
using SecurityAccessLevel = DotNetNuke.Security.SecurityAccessLevel;
+using Newtonsoft.Json.Serialization;
+using System.Reflection;
#endregion
@@ -168,10 +170,13 @@ protected override void OnPreRender(EventArgs e)
if (LogContext.IsLogActive && !Debugger.IsAttached)
{
ClientResourceManager.RegisterScript(Page, Page.ResolveUrl("~/DesktopModules/OpenContent/js/opencontent.js"), FileOrder.Js.DefaultPriority);
+ var json = JsonConvert.SerializeObject(LogContext.Current.ModuleLogs(ModuleContext.ModuleId));
+ json = json.Replace("", "*/script*");
StringBuilder logScript = new StringBuilder();
//logScript.AppendLine("");
@@ -472,4 +477,6 @@ private void RenderHttpException(NotAuthorizedException ex)
#endregion
}
+
+
}
\ No newline at end of file