DO NOT DOWNLOAD. DOWNLOAD LATEST STABLE FROM RELEASE TAB

better log cleaning to not mess up the audit trail

[TFS Changeset #61971]
This commit is contained in:
slace
2009-12-03 10:07:39 +00:00
parent 7019a494ef
commit cf9fad89ad
3 changed files with 3 additions and 3 deletions

View File

@@ -375,7 +375,7 @@ namespace umbraco.BusinessLogic
try
{
DateTime oldestPermittedLogEntry = DateTime.Now.Subtract(new TimeSpan(0, maximumAgeOfLogsInMinutes, 0));
SqlHelper.ExecuteNonQuery("delete from umbracoLog where datestamp < @oldestPermittedLogEntry",
SqlHelper.ExecuteNonQuery("delete from umbracoLog where datestamp < @oldestPermittedLogEntry and logHeader in ('open','system')",
SqlHelper.CreateParameter("@oldestPermittedLogEntry", oldestPermittedLogEntry));
Add(LogTypes.System, -1, "Log scrubbed. Removed all items older than " + oldestPermittedLogEntry);
}

View File

@@ -1,6 +1,6 @@
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
<PropertyGroup>
<ProductVersion>9.0.21022</ProductVersion>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{651E1350-91B6-44B7-BD60-7207006D7003}</ProjectGuid>
<ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
@@ -2671,7 +2671,7 @@
</None>
<None Include="umbraco_client\CodeMirror\LICENSE" />
<None Include="Web References\org.umbraco.update\checkforupgrade.disco" />
<Content Include="web.config.APOWELL-XP.xslt" />
<Content Include="web.config.APOWELL-WIN7.xslt" />
<Content Include="web.config.BOMBER.xslt" />
<Content Include="web.config.SONIC.xslt" />
<Content Include="web.STANDARD.config" />