Skip to content

Commit

Permalink
Merge pull request apache#24 from Shopify/fix_metrics_log_additivity
Browse files Browse the repository at this point in the history
set metrics logger to be non additive
  • Loading branch information
dklassen committed Nov 21, 2014
2 parents 1af0d1b + 252d820 commit 12c2ba6
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ private LogReporter(MetricRegistry registry,

super(registry, "log-reporter", filter, rateUnit, durationUnit);
this.logger = Logger.getLogger("com.shopify.metrics");
this.logger.setAdditivity(false);

String file = String.format("%s/spark.metrics.log", directory);

try {
PatternLayout layout = new PatternLayout("%d{ISO8601} %c %m%n");
Expand Down

0 comments on commit 12c2ba6

Please sign in to comment.