Skip to content

Commit 6d4d041

Browse files
authored
Merge pull request #12 from jianglai/log-level
Change log level of several logging events
2 parents c30c88e + c74fbe0 commit 6d4d041

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

metrics/src/main/java/com/google/monitoring/metrics/MetricExporter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ protected void run() throws Exception {
5454
logger.info("Started up MetricExporter");
5555
while (isRunning()) {
5656
Optional<ImmutableList<MetricPoint<?>>> batch = writeQueue.take();
57-
logger.info("Got a batch of points from the writeQueue");
57+
logger.fine("Got a batch of points from the writeQueue");
5858
if (batch.isPresent()) {
59-
logger.info("Batch contains data, writing to MetricWriter");
59+
logger.fine("Batch contains data, writing to MetricWriter");
6060
try {
6161
for (MetricPoint<?> point : batch.get()) {
6262
writer.write(point);

metrics/src/main/java/com/google/monitoring/metrics/MetricReporter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public MetricReporter(
8484

8585
@Override
8686
protected void runOneIteration() {
87-
logger.info("Running background metric push");
87+
logger.fine("Running background metric push");
8888

8989
if (metricExporter.state() == State.FAILED) {
9090
startMetricExporter();

stackdriver/src/main/java/com/google/monitoring/metrics/stackdriver/StackdriverWriter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ public void flush() throws IOException {
214214
for (TimeSeries timeSeries : timeSeriesList) {
215215
pushedPoints.increment(timeSeries.getMetricKind(), timeSeries.getValueType());
216216
}
217-
logger.info(String.format("Flushed %d metrics to Stackdriver", timeSeriesList.size()));
217+
logger.fine(String.format("Flushed %d metrics to Stackdriver", timeSeriesList.size()));
218218
}
219219

220220
/**

0 commit comments

Comments
 (0)