mirror of
https://github.com/SoPat712/allstarr.git
synced 2026-02-09 23:55:10 -05:00
Add info-level logging for Spotify auth debugging
This commit is contained in:
@@ -111,7 +111,7 @@ public class SpotifyApiClient : IDisposable
|
||||
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
|
||||
var totpSecret = await GetTotpSecretAsync(cancellationToken);
|
||||
|
||||
@@ -211,6 +211,7 @@ public class SpotifyPlaylistFetcher : BackgroundService
|
||||
}
|
||||
|
||||
// Verify authentication
|
||||
_logger.LogInformation("Attempting Spotify authentication...");
|
||||
var (success, userId, displayName) = await _spotifyClient.GetCurrentUserAsync(stoppingToken);
|
||||
if (!success)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user