Added Logging

This commit is contained in:
shabinder 2021-05-03 11:33:28 +05:30
parent 02d137588f
commit d8415b52ca
5 changed files with 6 additions and 0 deletions

View File

@ -52,6 +52,7 @@ class GaanaProvider(
link
)
} catch (e: Exception) {
e.printStackTrace()
null
}
}

View File

@ -99,6 +99,7 @@ class SpotifyProvider(
link
)
}catch (e: Exception){
e.printStackTrace()
// Try Reinitialising Client // Handle 401 Token Expiry ,etc Exceptions
authenticateSpotifyClient(true)
// Retry Search
@ -108,6 +109,7 @@ class SpotifyProvider(
link
)
} catch (e:Exception){
e.printStackTrace()
null
}
}

View File

@ -38,6 +38,7 @@ class YoutubeMp3(
else it
}
} catch (e: Exception) {
e.printStackTrace()
null
}
}

View File

@ -56,6 +56,7 @@ class YoutubeMusic constructor(
).keys.firstOrNull()
} catch (e:Exception) {
// All Internet/Client Related Errors
e.printStackTrace()
null
}
}

View File

@ -34,6 +34,7 @@ suspend fun authenticateSpotify(): TokenData? {
body = FormDataContent(Parameters.build { append("grant_type", "client_credentials") })
} else null
}catch (e:Exception) {
e.printStackTrace()
null
}
}