Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Prowlarr/src/commit/1cd6c5d0c0ca8c9d41f2c379e72a5ac96a2da61c/NzbDrone.Core/Instrumentation/LogProvider.cs You should set ROOT_URL correctly, otherwise the web may not work correctly.
Prowlarr/NzbDrone.Core/Instrumentation/LogProvider.cs

28 lines
649 B

using System.Linq;
using NLog;
using SubSonic.Repository;
namespace NzbDrone.Core.Instrumentation
{
public class LogProvider
{
private static readonly Logger Logger = LogManager.GetCurrentClassLogger();
private readonly IRepository _repository;
public LogProvider(IRepository repository)
{
_repository = repository;
}
public IQueryable<Log> GetAllLogs()
{
return _repository.All<Log>();
}
public void DeleteAll()
{
_repository.DeleteMany(GetAllLogs());
Logger.Info("Cleared Log History");
}
}
}