From 837572a8cd0d46f62460981716cd127720bf2c0b Mon Sep 17 00:00:00 2001 From: tidusjar Date: Tue, 5 Apr 2016 14:07:26 +0100 Subject: [PATCH] Fixed the logs page --- PlexRequests.UI/Modules/AdminModule.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/PlexRequests.UI/Modules/AdminModule.cs b/PlexRequests.UI/Modules/AdminModule.cs index d62a543b3..aa2fc6df2 100644 --- a/PlexRequests.UI/Modules/AdminModule.cs +++ b/PlexRequests.UI/Modules/AdminModule.cs @@ -55,6 +55,8 @@ using PlexRequests.UI.Helpers; using PlexRequests.UI.Models; using System; +using Nancy.Json; + namespace PlexRequests.UI.Modules { public class AdminModule : NancyModule @@ -607,7 +609,8 @@ namespace PlexRequests.UI.Modules private Response LoadLogs() { - var allLogs = LogsRepo.GetAll(); + JsonSettings.MaxJsonLength = int.MaxValue; + var allLogs = LogsRepo.GetAll().OrderByDescending(x => x.Id).Take(200); var model = new DatatablesModel {Data = new List()}; foreach (var l in allLogs) {