Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

Commit

Permalink
Merge pull request #211 from launchdarkly/eb/ch71166/debug-stacktrace
Browse files Browse the repository at this point in the history
Java SDK should only log exception stacktraces at debug level
  • Loading branch information
eli-darkly authored Apr 21, 2020
2 parents 868ef25 + 1ee6277 commit a7e97b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,8 @@ private static void postJson(OkHttpClient httpClient, Headers headers, String js
}
break;
} catch (IOException e) {
logger.warn("Unhandled exception in LaunchDarkly client when posting events to URL: " + request.url(), e);
logger.warn("Unhandled exception in LaunchDarkly client when posting events to URL: {} ({})", request.url(), e.toString());
logger.debug(e.toString(), e);
continue;
}
}
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/com/launchdarkly/client/LDClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,8 @@ private static String getClientVersion() {
String value = attr.getValue("Implementation-Version");
return value;
} catch (IOException e) {
logger.warn("Unable to determine LaunchDarkly client library version", e);
logger.warn("Unable to determine LaunchDarkly client library version: {}", e.toString());
logger.debug(e.toString(), e);
return "Unknown";
}
}
Expand Down

0 comments on commit a7e97b9

Please sign in to comment.