Skip to content

Commit

Permalink
[java] Using logger instead of printing to stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
barancev committed May 1, 2020
1 parent 52bf3a1 commit 61c1de0
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,13 @@
import java.net.URISyntaxException;
import java.util.Map;
import java.util.Objects;
import java.util.logging.Level;
import java.util.logging.Logger;

public class ReactorClient implements HttpClient {

private static final Logger log = Logger.getLogger(ReactorClient.class.getName());

private static final Map<HttpMethod, io.netty.handler.codec.http.HttpMethod> methodMap =
ImmutableMap.of(HttpMethod.DELETE, io.netty.handler.codec.http.HttpMethod.DELETE,
HttpMethod.GET, io.netty.handler.codec.http.HttpMethod.GET,
Expand Down Expand Up @@ -106,7 +110,7 @@ private Flux<ByteBuf> fromInputStream(InputStream is) {
in.close();
}
} catch (IOException e) {
e.printStackTrace();
log.log(Level.INFO, e.getMessage(), e);
}
});
}
Expand Down

0 comments on commit 61c1de0

Please sign in to comment.