Skip to content

Commit 25046bc

Browse files
authored
Merge pull request #2563 from newrelic/increase-adaptive-sampler-logging
Update adaptive sampler logging to INFO level
2 parents ae73a3d + 36e6b97 commit 25046bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

newrelic-agent/src/main/java/com/newrelic/agent/tracing/samplers/AdaptiveSampler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ protected AdaptiveSampler(int target, int reportPeriodSeconds){
3636
this.sampledCount = 0;
3737
this.sampledCountLast = 0;
3838
this.firstPeriod = true;
39-
NewRelic.getAgent().getLogger().log(Level.FINE, "Started Adaptive Sampler with sampling target " + this.target + " and report period " +
39+
NewRelic.getAgent().getLogger().log(Level.INFO, "Started Adaptive Sampler with sampling target " + this.target + " and report period " +
4040
reportPeriodSeconds + " seconds.");
4141
}
4242

@@ -67,7 +67,7 @@ public static synchronized AdaptiveSampler getSharedInstance(){
6767
*/
6868
public static synchronized void setSharedTarget(int newTarget) {
6969
if (SAMPLER_SHARED_INSTANCE != null) {
70-
NewRelic.getAgent().getLogger().log(Level.FINE, "Updating shared Adaptive Sampler sampling target to " + newTarget);
70+
NewRelic.getAgent().getLogger().log(Level.INFO, "Updating shared Adaptive Sampler sampling target to " + newTarget);
7171
getSharedInstance().setTarget(newTarget);
7272

7373
ServiceFactory.getStatsService()

0 commit comments

Comments
 (0)