fixes log scrub interval with ms with updated background tasks

This commit is contained in:
Shannon
2015-03-27 14:52:38 +11:00
parent 58ce04e26b
commit 4bdac1475f

View File

@@ -52,7 +52,7 @@ namespace Umbraco.Web.Scheduling
public static int GetLogScrubbingInterval(IUmbracoSettingsSection settings)
{
int interval = 24 * 60 * 60; //24 hours
var interval = 4 * 60 * 60 * 1000; // 4 hours, in milliseconds
try
{
if (settings.Logging.CleaningMiliseconds > -1)
@@ -60,7 +60,7 @@ namespace Umbraco.Web.Scheduling
}
catch (Exception e)
{
LogHelper.Error<LogScrubber>("Unable to locate a log scrubbing interval. Defaulting to 24 horus", e);
LogHelper.Error<LogScrubber>("Unable to locate a log scrubbing interval. Defaulting to 4 hours.", e);
}
return interval;
}