Skip to content

Commit

Permalink
chore: lower log level to Debug for trivial operations
Browse files Browse the repository at this point in the history
  • Loading branch information
maxnatamo committed Sep 9, 2024
1 parent 2634bdb commit 16862ad
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/API/src/Services/RadarrMovieService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public override async Task InvokeAsync(CancellationToken cancellationToken)
continue;
}

logger.LogInformation("Sending movie '{Title} ({Year})' to Radarr...", item.Title, item.Year);
logger.LogDebug("Sending movie '{Title} ({Year})' to Radarr...", item.Title, item.Year);

RadarrMovie? movie = await radarrClientCollection.GetMovieByTmdbAsync(item.TmdbId);
if(movie is null)
Expand Down
2 changes: 1 addition & 1 deletion src/API/src/Services/SonarrSeriesService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public override async Task InvokeAsync(CancellationToken cancellationToken)
continue;
}

logger.LogInformation("Sending series '{Title} ({Year})' to Sonarr...", item.Title, item.Year);
logger.LogDebug("Sending series '{Title} ({Year})' to Sonarr...", item.Title, item.Year);

SonarrSeries? series = await sonarrClientCollection.GetSeriesByTvdbAsync(item.TvdbId);
if(series is null)
Expand Down
2 changes: 1 addition & 1 deletion src/Cache/Core/src/Services/CacheEvictionService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ private async Task EvictCachesAsync(CancellationToken cancellationToken)
return;
}

logger.LogInformation("Evicting expired cache entries...");
logger.LogDebug("Evicting expired cache entries...");

foreach(ICachingProvider provider in services.GetServices<ICachingProvider>())
{
Expand Down
4 changes: 2 additions & 2 deletions src/Provider.Radarr/src/RadarrClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ await this._client
.Request($"/api/v3/movie/{movie.Id}")
.PutJsonAsync(requestBody);

logger.LogInformation(
logger.LogDebug(
"Updated '{Title} ({Year})' in Radarr instance '{Instance}'.",
movie.Title,
movie.Year,
Expand All @@ -198,7 +198,7 @@ await this._client
.Request("/api/v3/movie")
.PostJsonAsync(requestBody);

logger.LogInformation(
logger.LogDebug(
"Added '{Title} ({Year})' to Radarr instance '{Instance}'.",
movie.Title,
movie.Year,
Expand Down
4 changes: 2 additions & 2 deletions src/Provider.Sonarr/src/SonarrClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ await this._client
.Request($"/api/v3/series/{series.Id}")
.PutJsonAsync(requestBody);

logger.LogInformation(
logger.LogDebug(
"Updated '{Title} ({Year})' in Sonarr instance '{Instance}'.",
series.Title,
series.Year,
Expand All @@ -159,7 +159,7 @@ await this._client
.Request("/api/v3/series")
.PostJsonAsync(requestBody);

logger.LogInformation(
logger.LogDebug(
"Added '{Title} ({Year})' to Sonarr instance '{Instance}'.",
series.Title,
series.Year,
Expand Down

0 comments on commit 16862ad

Please sign in to comment.