mirror of https://github.com/lidarr/Lidarr
20 lines
396 B
C#
20 lines
396 B
C#
using NzbDrone.Core.Instrumentation;
|
|
|
|
namespace NzbDrone.Core.Housekeeping.Housekeepers
|
|
{
|
|
public class TrimLogDatabase : IHousekeepingTask
|
|
{
|
|
private readonly ILogRepository _logRepo;
|
|
|
|
public TrimLogDatabase(ILogRepository logRepo)
|
|
{
|
|
_logRepo = logRepo;
|
|
}
|
|
|
|
public void Clean()
|
|
{
|
|
_logRepo.Trim();
|
|
}
|
|
}
|
|
}
|