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

Commit

Permalink
don't log exception stacktraces except at debug level
Browse files Browse the repository at this point in the history
  • Loading branch information
eli-darkly committed Apr 21, 2020
1 parent 868ef25 commit 1ee6277
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 1ee6277

Please sign in to comment.