Added more logging information to syslog for failed parse of JSON raw data string

This commit is contained in:
Graham Jones
2020-11-05 19:39:45 +00:00
parent eda4a1de76
commit 7f368b3655
5 changed files with 5 additions and 4 deletions

View File

@@ -2,8 +2,8 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="uk.org.openseizuredetector"
android:versionCode="78"
android:versionName="3.6.1e">
android:versionCode="79"
android:versionName="3.6.1f">
<!-- android:allowBackup="false" -->
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />

View File

@@ -317,6 +317,7 @@ public abstract class SdDataSource {
} catch (Exception e) {
Log.e(TAG,"updateFromJSON - Error Parsing JSON String - "+ jsonStr+" - "+e.toString());
mUtil.writeToSysLogFile("updateFromJSON - Error Parsing JSON String - "+ jsonStr + " - "+e.toString());
mUtil.writeToSysLogFile("updateFromJSON: Exception at Line Number: "+e.getCause().getStackTrace()[0].getLineNumber()+", "+e.getCause().getStackTrace()[0].toString());
e.printStackTrace();
retVal = "ERROR";
}