Skip to content

Commit

Permalink
Fix log message
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Jan 26, 2023
1 parent e95bb1c commit c7f91f6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ protected synchronized ClientHttpResponse executeInternal(final HttpHeaders head
final InputStream is = new ByteArrayInputStream(bytes);
final ConfigFileResolverHttpResponse response =
new ConfigFileResolverHttpResponse(is, headers);
LOGGER.debug("Resolved request: {} using mapfish print config file loaders.",
LOGGER.debug("Resolved request: {} using MapFish print config file loaders.",
uriString);
return response;
} catch (NoSuchElementException e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import com.codahale.metrics.MetricRegistry;
import com.codahale.metrics.Timer;

import org.apache.commons.io.IOUtils;
import org.geotools.coverage.CoverageFactoryFinder;
import org.geotools.coverage.grid.GridCoverage2D;
import org.geotools.coverage.grid.GridCoverageFactory;
Expand All @@ -25,6 +26,7 @@
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.util.concurrent.Callable;
import java.util.concurrent.RecursiveTask;

Expand Down Expand Up @@ -235,7 +237,8 @@ protected Tile compute() {
"Error making tile request: %s\nStatus: %s\n" +
"Status message: %s\nServer:%s\nBody:\n%s",
this.tileRequest.getURI(), statusCode, response.getStatusText(),
response.getHeaders().getFirst(HttpHeaders.SERVER), response.getBody()));
response.getHeaders().getFirst(HttpHeaders.SERVER),
IOUtils.toString(response.getBody(), StandardCharsets.UTF_8)));
this.registry.counter(baseMetricName + ".error").inc();
if (this.failOnError) {
throw new RuntimeException(errorMessage);
Expand Down

0 comments on commit c7f91f6

Please sign in to comment.