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

25 lines
611 B

using System;
using NzbDrone.Common.Messaging;
using NzbDrone.Core.Datastore;
namespace NzbDrone.Core.Instrumentation
{
public interface ILogRepository : IBasicRepository<Log>
{
void Trim();
}
public class LogRepository : BasicRepository<Log>, ILogRepository
{
public LogRepository(IDatabase database, IMessageAggregator messageAggregator)
: base(database, messageAggregator)
{
}
public void Trim()
{
var trimDate = DateTime.UtcNow.AddDays(-15).Date;
Delete(c => c.Time <= trimDate);
}
}
}