Update: 2026-05-14 19:36:06
This commit is contained in:
@@ -109,6 +109,9 @@ class BotForegroundService : Service() {
|
||||
} else {
|
||||
Log.e("JordanBot", "❌ Failed to upload locations: ${response.message}")
|
||||
}
|
||||
} catch (e: retrofit2.HttpException) {
|
||||
val errorBody = e.response()?.errorBody()?.string()
|
||||
Log.e("JordanBot", "❌ Error uploading locations: HTTP ${e.code()} - Body: $errorBody", e)
|
||||
} catch (e: Exception) {
|
||||
Log.e("JordanBot", "❌ Error uploading locations", e)
|
||||
// If failed, we might want to add them back to the buffer,
|
||||
|
||||
@@ -93,6 +93,9 @@ class RideNotificationListener : NotificationListenerService() {
|
||||
if (response.success) {
|
||||
Log.d("JordanBot", "✅ Ride log sent to server")
|
||||
}
|
||||
} catch (e: retrofit2.HttpException) {
|
||||
val errorBody = e.response()?.errorBody()?.string()
|
||||
Log.e("JordanBot", "❌ Failed to send ride log: HTTP ${e.code()} - Body: $errorBody", e)
|
||||
} catch (e: Exception) {
|
||||
Log.e("JordanBot", "❌ Failed to send ride log", e)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user