Skip to content
This repository has been archived by the owner on Sep 14, 2020. It is now read-only.

Commit

Permalink
Reduce gratuitous logging
Browse files Browse the repository at this point in the history
Fixes #245
  • Loading branch information
kattrali committed Jun 1, 2018
1 parent 741dcca commit 934c733
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
Changelog
=========

## TBD

### Bug fixes

* (android) Reduce gratutious android logging
[#245](https://github.com/bugsnag/bugsnag-react-native/issues/245)

## 2.9.4 (2018-05-02)

* Enable nativeSerializer to handle Error objects by extracting the stack and message from a given Error class before serialising it. [#239](https://github.com/bugsnag/bugsnag-react-native/issues/239) [#240](https://github.com/bugsnag/bugsnag-react-native/pull/240) [daisy1754](https://github.com/daisy1754) [Cawllec](https://github.com/Cawllec)
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ ifeq ($(IOS_VERSION),)
endif
@git -C ../bugsnag-cocoa fetch
@git -C ../bugsnag-cocoa checkout v$(IOS_VERSION)
@rsync --delete -al ../bugsnag-cocoa/Source cocoa/vendor/bugsnag-cocoa/Source
@rsync --delete -al ../bugsnag-cocoa/iOS cocoa/vendor/bugsnag-cocoa/iOS
@rsync --delete -al ../bugsnag-cocoa/Source/ cocoa/vendor/bugsnag-cocoa/Source/
@rsync --delete -al ../bugsnag-cocoa/iOS/ cocoa/vendor/bugsnag-cocoa/iOS/
@git status
6 changes: 1 addition & 5 deletions android/src/main/java/com/bugsnag/BugsnagReactNative.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ public void startWithOptions(ReadableMap options) {
@ReactMethod
public void leaveBreadcrumb(ReadableMap options) {
String name = options.getString("name");
logger.info(String.format("Leaving breadcrumb '%s'", name));
Bugsnag.leaveBreadcrumb(name,
parseBreadcrumbType(options.getString("type")),
readStringMap(options.getMap("metadata")));
Expand Down Expand Up @@ -130,18 +129,16 @@ public void notifyBlocking(ReadableMap payload, boolean blocking, com.facebook.r
map.put("severity", severity);
map.put("severityReason", severityReason);

logger.info("Notifying native client, severity = " + severity +
logger.debug("Notifying native client, severity = " + severity +
", severityReason = " + severityReason);
Bugsnag.internalClientNotify(exc, map, blocking, handler);
logger.info("Notified native client");

if (callback != null)
callback.invoke();
}

@ReactMethod
public void setUser(ReadableMap userInfo) {
logger.info("Setting user data");
String userId = userInfo.hasKey("id") ? userInfo.getString("id") : null;
String email = userInfo.hasKey("email") ? userInfo.getString("email") : null;
String name = userInfo.hasKey("name") ? userInfo.getString("name") : null;
Expand Down Expand Up @@ -406,7 +403,6 @@ class JavaScriptException extends Exception implements JsonStream.Streamable {
}

public void toStream(JsonStream writer) throws IOException {
BugsnagReactNative.logger.info("Serializing exception");
writer.beginObject();
writer.name("errorClass").value(name);
writer.name("message").value(getLocalizedMessage());
Expand Down

0 comments on commit 934c733

Please sign in to comment.