Update: 2026-05-14 19:36:06

This commit is contained in:
Hamza-Ayed
2026-05-14 19:36:06 +03:00
parent 22433b040e
commit bf7021a666
59 changed files with 9 additions and 3 deletions

View File

@@ -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,

View File

@@ -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)
}