Skip to content

Commit

Permalink
Improves error logging in HttpTransmitter in lieu of crashes.
Browse files Browse the repository at this point in the history
  • Loading branch information
audaciouscode committed Aug 14, 2017
1 parent e58c6b1 commit abe532f
Showing 1 changed file with 7 additions and 2 deletions.
Expand Up @@ -690,9 +690,14 @@ else if (value instanceof Bundle) {
}

generator.writeEndObject();
}
catch (IOException e) {
} catch (Exception e) {
Logger.getInstance(context).logThrowable(e);

HashMap<String, Object> payload = new HashMap<>();
payload.put("bundle_string", bundle.toString());
payload.put("exception_type", e.getClass().getName());

Logger.getInstance(context).log("pdk_http_transmitter_write_bundle_error", payload);
}
}

Expand Down

0 comments on commit abe532f

Please sign in to comment.