Skip to content

Commit 5680394

Browse files
Merge pull request #203 from splitio/fetchers-log-changes
Fetchers log changes
2 parents fc1a11a + 7db39f7 commit 5680394

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

client/src/main/java/io/split/client/metrics/HttpMetrics.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public void time(Latency dto) {
5050
try {
5151
post(_timeTarget, dto);
5252
} catch (Throwable t) {
53-
_log.warn("Exception when posting metric" + dto, t);
53+
_log.warn("Exception when posting metric " + dto, t);
5454
}
5555
;
5656

@@ -61,7 +61,7 @@ public void count(Counter dto) {
6161
try {
6262
post(_counterTarget, dto);
6363
} catch (Throwable t) {
64-
_log.warn("Exception when posting metric" + dto, t);
64+
_log.warn("Exception when posting metric " + dto, t);
6565
}
6666

6767
}
@@ -85,9 +85,9 @@ private void post(URI uri, Object dto) {
8585
}
8686

8787
} catch (Throwable t) {
88-
_log.warn("Exception when posting metrics:" + t.getMessage());
88+
_log.warn("Exception when posting metrics: " + t.getMessage());
8989
if (_log.isDebugEnabled()) {
90-
_log.debug("Reason:", t);
90+
_log.debug("Reason: ", t);
9191
}
9292
} finally {
9393
Utils.forceClose(response);

client/src/main/java/io/split/engine/experiments/SplitSynchronizationTask.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public SplitSynchronizationTask(SplitFetcher splitFetcher, SplitCache splitCache
5555

5656
public void startPeriodicFetching() {
5757
if (_running.getAndSet(true)) {
58-
_log.warn("Splits PeriodicFetching is running...");
58+
_log.debug("Splits PeriodicFetching is running...");
5959
return;
6060
}
6161

@@ -65,7 +65,7 @@ public void startPeriodicFetching() {
6565

6666
public void stop() {
6767
if (!_running.getAndSet(false) || _scheduledFuture == null) {
68-
_log.warn("Splits PeriodicFetching not running...");
68+
_log.debug("Splits PeriodicFetching not running...");
6969
return;
7070
}
7171

client/src/main/java/io/split/engine/segments/SegmentSynchronizationTaskImp.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public SegmentFetcher getFetcher(String segmentName) {
103103
@Override
104104
public void startPeriodicFetching() {
105105
if (_running.getAndSet(true)) {
106-
_log.warn("Segments PeriodicFetching is running...");
106+
_log.debug("Segments PeriodicFetching is running...");
107107
return;
108108
}
109109

@@ -114,7 +114,7 @@ public void startPeriodicFetching() {
114114
@Override
115115
public void stop() {
116116
if (!_running.getAndSet(false) || _scheduledFuture == null) {
117-
_log.warn("Segments PeriodicFetching not running...");
117+
_log.debug("Segments PeriodicFetching not running...");
118118
return;
119119
}
120120

0 commit comments

Comments
 (0)