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

@@ -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";
}