1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-08-14 11:22:19 +02:00

Pebble: log some errors during JSON encoding/decoding

This commit is contained in:
Andreas Shimokawa 2017-11-14 22:02:00 +01:00
parent 6a8700201f
commit d25da96804
2 changed files with 2 additions and 1 deletions

View File

@ -85,7 +85,7 @@ class PebbleKitSupport {
sendAppMessageAck(transaction_id);
// }
} catch (JSONException e) {
e.printStackTrace();
LOG.error("failed decoding JSON", e);
}
break;
case PEBBLEKIT_ACTION_APP_ACK:

View File

@ -2023,6 +2023,7 @@ public class PebbleProtocol extends GBDeviceProtocol {
break;
}
} catch (JSONException e) {
LOG.error("error decoding JSON", e);
return null;
}
}