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

Commit b9f887b

Browse files
authored
Merge pull request #86 from launchdarkly/dr/2.0.10
Update okhttp dependency. Add more verbose debug logging when sending events.
2 parents 2606d6a + 7f03e9d commit b9f887b

File tree

5 files changed

+21
-3
lines changed

5 files changed

+21
-3
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33

44
All notable changes to the LaunchDarkly Java SDK will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org).
5+
## [2.0.10] - 2017-02-06
6+
### Changed
7+
- Updated okhttp-eventsource dependency to bring in newer okhttp dependency
8+
- Added more verbose debug level logging when sending events
9+
510
## [2.0.9] - 2017-01-24
611
### Changed
712
- StreamProcessor uses the proxy configuration specified by LDConfig.

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,15 @@ Your first feature flag
3737
// the code to run if the feature is off
3838
}
3939

40+
41+
Logging
42+
-------
43+
The LaunchDarkly SDK uses [SLF4J](https://www.slf4j.org/). For an example configuration check out the [hello-java](https://github.com/launchdarkly/hello-java) project.
44+
45+
Be aware of two considerations when enabling the DEBUG log level:
46+
1. Debug-level logs can be very verbose. It is not recommended that you turn on debug logging in high-volume environments.
47+
1. Potentially sensitive information is logged including LaunchDarkly users created by you in your usage of this SDK.
48+
4049
Learn more
4150
----------
4251

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ repositories {
1919

2020
allprojects {
2121
group = 'com.launchdarkly'
22-
version = "2.0.9"
22+
version = "2.0.10"
2323
sourceCompatibility = 1.7
2424
targetCompatibility = 1.7
2525
}
@@ -32,7 +32,7 @@ dependencies {
3232
compile "com.google.guava:guava:19.0"
3333
compile "joda-time:joda-time:2.9.3"
3434
compile "org.slf4j:slf4j-api:1.7.21"
35-
compile group: "com.launchdarkly", name: "okhttp-eventsource", version: "1.1.0", changing: true
35+
compile group: "com.launchdarkly", name: "okhttp-eventsource", version: "1.1.1", changing: true
3636
compile "redis.clients:jedis:2.9.0"
3737
testCompile "org.easymock:easymock:3.4"
3838
testCompile 'junit:junit:4.12'

src/main/java/com/launchdarkly/client/EventProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ public void flush() {
8080
}
8181

8282
private void postEvents(List<Event> events) {
83-
logger.debug("Posting " + events.size() + " event(s) to " + config.eventsURI);
8483
CloseableHttpResponse response = null;
8584
Gson gson = new Gson();
8685
String json = gson.toJson(events);
86+
logger.debug("Posting " + events.size() + " event(s) to " + config.eventsURI + " with payload: " + json);
8787

8888
HttpPost request = config.postEventsRequest(sdkKey, "/bulk");
8989
StringEntity entity = new StringEntity(json, "UTF-8");

src/main/java/com/launchdarkly/client/StreamProcessor.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ public Future<Void> start() {
6565
public void onOpen() throws Exception {
6666
}
6767

68+
@Override
69+
public void onClosed() throws Exception {
70+
}
71+
6872
@Override
6973
public void onMessage(String name, MessageEvent event) throws Exception {
7074
lastHeartbeat = DateTime.now();

0 commit comments

Comments
 (0)