Skip to content

Commit

Permalink
nicer logging of HTTP port
Browse files Browse the repository at this point in the history
  • Loading branch information
Yegor Bugayenko committed May 19, 2014
1 parent f672d84 commit 0705fbe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<version>1.6.1</version>
</parent>
<artifactId>jcabi-http</artifactId>
<version>1.5.1</version>
<version>1.5.2</version>
<packaging>jar</packaging>
<name>jcabi-http</name>
<description>Fluent HTTP Client</description>
Expand Down
5 changes: 3 additions & 2 deletions src/main/java/com/jcabi/http/request/BaseRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,11 @@ public Response fetch() throws IOException {
final URI uri = URI.create(this.home);
Logger.info(
this,
"#fetch(%s %s:%d %s): [%d %s] in %[ms]s",
"#fetch(%s %s%s %s): [%d %s] in %[ms]s",
this.mtd,
uri.getHost(),
uri.getPort(),
// @checkstyle AvoidInlineConditionalsCheck (1 line)
uri.getPort() > 0 ? String.format(":%d", uri.getPort()) : "",
uri.getPath(),
response.status(),
response.reason(),
Expand Down

0 comments on commit 0705fbe

Please sign in to comment.