Commit 13a9bc05 authored by Andy Wilkinson's avatar Andy Wilkinson

Polish “Allow injection of StatsDClient into StatsdMetricWriter”

Closes gh-6588
parent 63085fb4
/* /*
* Copyright 2012-2015 the original author or authors. * Copyright 2012-2016 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
...@@ -64,7 +64,7 @@ public class StatsdMetricWriter implements MetricWriter, Closeable { ...@@ -64,7 +64,7 @@ public class StatsdMetricWriter implements MetricWriter, Closeable {
*/ */
public StatsdMetricWriter(String prefix, String host, int port) { public StatsdMetricWriter(String prefix, String host, int port) {
this(new NonBlockingStatsDClient(trimPrefix(prefix), host, port, this(new NonBlockingStatsDClient(trimPrefix(prefix), host, port,
new LoggingStatsdErrorHandler())); new LoggingStatsdErrorHandler()));
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment