Subversion Repositories SmartDukaan

Rev

Rev 3172 | Rev 3208 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3172 Rev 3184
Line 32... Line 32...
32
    
32
    
33
    @Override
33
    @Override
34
    public JSONObject getLogDataInJson() {
34
    public JSONObject getLogDataInJson() {
35
        JSONObject logDataInJson = new JSONObject();
35
        JSONObject logDataInJson = new JSONObject();
36
        try {
36
        try {
-
 
37
            if (source.length() > 500) {
-
 
38
                source = source.substring(0, 500);
-
 
39
            }
37
            logDataInJson.put("source", source.substring(0, 500));
40
            logDataInJson.put("source", source);
38
        } catch (JSONException e) {
41
        } catch (JSONException e) {
39
            e.printStackTrace();
42
            e.printStackTrace();
40
        }
43
        }
41
        return logDataInJson;
44
        return logDataInJson;
42
    }
45
    }