Skip to content

Commit 7e93511

Browse files
authored
Reduce log level of sampling error logging (#309)
* Reduce log level of target poller throwables * Update RulePoller.java * Update RulePoller.java * Update TargetPoller.java
1 parent ff57897 commit 7e93511

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

aws-xray-recorder-sdk-core/src/main/java/com/amazonaws/xray/strategy/sampling/pollers/RulePoller.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public void start() {
7171
try {
7272
pollRule();
7373
} catch (Throwable t) {
74-
logger.error("Encountered error polling GetSamplingRules: ", t);
74+
logger.info("Encountered error polling GetSamplingRules: ", t);
7575
// Propagate if Error so executor stops executing.
7676
// TODO(anuraaga): Many Errors aren't fatal, this should probably be more restricted, e.g.
7777
// https://github.com/openzipkin/brave/blob/master/brave/src/main/java/brave/internal/Throwables.java

aws-xray-recorder-sdk-core/src/main/java/com/amazonaws/xray/strategy/sampling/pollers/TargetPoller.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public void start() {
6666
try {
6767
pollManifest();
6868
} catch (Throwable t) {
69-
logger.error("Encountered error polling GetSamplingTargets: ", t);
69+
logger.info("Encountered error polling GetSamplingTargets: ", t);
7070
// Propagate if Error so executor stops executing.
7171
// TODO(anuraaga): Many Errors aren't fatal, this should probably be more restricted, e.g.
7272
// https://github.com/openzipkin/brave/blob/master/brave/src/main/java/brave/internal/Throwables.java

0 commit comments

Comments
 (0)