Add info-level logging for Spotify auth debugging

This commit is contained in:
2026-02-03 14:31:28 -05:00
parent b2c28d10f1
commit 8e7fc8b4ef
2 changed files with 2 additions and 1 deletions

View File

@@ -111,7 +111,7 @@ public class SpotifyApiClient : IDisposable
return _webAccessToken; return _webAccessToken;
} }
_logger.LogDebug("Fetching new Spotify web access token using TOTP authentication"); _logger.LogInformation("Fetching new Spotify web access token using TOTP authentication");
// Fetch TOTP secrets if needed // Fetch TOTP secrets if needed
var totpSecret = await GetTotpSecretAsync(cancellationToken); var totpSecret = await GetTotpSecretAsync(cancellationToken);

View File

@@ -211,6 +211,7 @@ public class SpotifyPlaylistFetcher : BackgroundService
} }
// Verify authentication // Verify authentication
_logger.LogInformation("Attempting Spotify authentication...");
var (success, userId, displayName) = await _spotifyClient.GetCurrentUserAsync(stoppingToken); var (success, userId, displayName) = await _spotifyClient.GetCurrentUserAsync(stoppingToken);
if (!success) if (!success)
{ {