Skip to content

Commit

Permalink
DNN-8667: disable purge log buffer by default when event viewer contr…
Browse files Browse the repository at this point in the history
…ol loaded.
  • Loading branch information
zyhfish committed May 16, 2016
1 parent f507866 commit 5c2d794
Showing 1 changed file with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,12 @@ protected override void OnLoad(EventArgs e)
{
txtSubject.Text = Localization.GetString("LogEntryDefaultSubject", LocalResourceFile);
txtMessage.Text = Localization.GetString("LogEntryDefaultMsg", LocalResourceFile);
LogController.Instance.PurgeLogBuffer();

if (AutoPurgeLogBuffer)
{
LogController.Instance.PurgeLogBuffer();
}

if (Request.QueryString["PageRecords"] != null)
{
ddlRecordsPerPage.SelectedValue = Request.QueryString["PageRecords"];
Expand Down Expand Up @@ -498,6 +503,14 @@ public void BindData()

public string EventFilter { get; set; }

public bool AutoPurgeLogBuffer
{
get
{
return Settings.ContainsKey("AutoPurgeLogBuffer") && Convert.ToBoolean(Settings["AutoPurgeLogBuffer"]);
}
}

#endregion

}
Expand Down

0 comments on commit 5c2d794

Please sign in to comment.