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 link
) )
} catch (e: Exception) { } catch (e: Exception) {
e.printStackTrace()
null null
} }
} }

View File

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

View File

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

View File

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

View File

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