You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Cservenak, Tamas (JIRA)" <ji...@apache.org> on 2014/01/17 14:48:19 UTC
[jira] [Updated] (HTTPCLIENT-1448) Add context information to
DefaultRequestDirector INFO level logging
[ https://issues.apache.org/jira/browse/HTTPCLIENT-1448?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Cservenak, Tamas updated HTTPCLIENT-1448:
-----------------------------------------
Summary: Add context information to DefaultRequestDirector INFO level logging (was: Add context information to INFO level logging)
> Add context information to DefaultRequestDirector INFO level logging
> --------------------------------------------------------------------
>
> Key: HTTPCLIENT-1448
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1448
> Project: HttpComponents HttpClient
> Issue Type: Improvement
> Components: HttpConn
> Reporter: Cservenak, Tamas
> Priority: Minor
>
> In Nexus MRM HttpClient4x is used as transport. Nexus is a proxy server, hence there is a lot of (independent) interaction of HttpClient4x with remote servers on behalf of incoming requests. HttpClient does some INFO level logging that in my opinion lacks some context. Typical example:
> {quote}
> 2014-01-14 12:31:17 INFO [qtp1303027754-18064] org.sonatype.nexus.apachehttpclient.Hc4ProviderBase$DefaultHttpClientImpl - I/O exception (org.apache.http.NoHttpResponseException) caught when processing request: The target server failed to respond
> 2014-01-14 12:31:17 INFO [qtp1303027754-18064] org.sonatype.nexus.apachehttpclient.Hc4ProviderBase$DefaultHttpClientImpl - Retrying request
> 2014-01-14 12:31:21 INFO [qtp1303027754-18036] org.sonatype.nexus.apachehttpclient.Hc4ProviderBase$DefaultHttpClientImpl - I/O exception (org.apache.http.NoHttpResponseException) caught when processing request: The target server failed to respond
> 2014-01-14 12:31:21 INFO [qtp1303027754-18036] org.sonatype.nexus.apachehttpclient.Hc4ProviderBase$DefaultHttpClientImpl - Retrying request
> 2014-01-14 12:31:28 INFO [qtp1303027754-18036] org.sonatype.nexus.apachehttpclient.Hc4ProviderBase$DefaultHttpClientImpl - I/O exception (org.apache.http.NoHttpResponseException) caught when processing request: The target server failed to respond
> 2014-01-14 12:31:28 INFO [qtp1303027754-18036] org.sonatype.nexus.apachehttpclient.Hc4ProviderBase$DefaultHttpClientImpl - Retrying request
> 2014-01-14 12:31:40 INFO [qtp1303027754-18053] org.sonatype.nexus.apachehttpclient.Hc4ProviderBase$DefaultHttpClientImpl - I/O exception (org.apache.http.NoHttpResponseException) caught when processing request: The target server failed to respond
> 2014-01-14 12:31:40 INFO [qtp1303027754-18053] org.sonatype.nexus.apachehttpclient.Hc4ProviderBase$DefaultHttpClientImpl - Retrying request
> 2014-01-14 12:31:47 INFO [qtp1303027754-18060] org.sonatype.nexus.apachehttpclient.Hc4ProviderBase$DefaultHttpClientImpl - I/O exception (org.apache.http.NoHttpResponseException) caught when processing request: The target server failed to respond
> 2014-01-14 12:31:47 INFO [qtp1303027754-18060] org.sonatype.nexus.apachehttpclient.Hc4ProviderBase$DefaultHttpClientImpl - Retrying request
> 2014-01-14 12:32:02 INFO [qtp1303027754-18036] org.sonatype.nexus.apachehttpclient.Hc4ProviderBase$DefaultHttpClientImpl - I/O exception (org.apache.http.NoHttpResponseException) caught when processing request: The target server failed to respond
> 2014-01-14 12:32:02 INFO [qtp1303027754-18036] org.sonatype.nexus.apachehttpclient.Hc4ProviderBase$DefaultHttpClientImpl - Retrying request
> 2014-01-14 12:32:18 INFO [qtp1303027754-18059] org.sonatype.nexus.apachehttpclient.Hc4ProviderBase$DefaultHttpClientImpl - I/O exception (org.apache.http.NoHttpResponseException) caught when processing request: The target server failed to respond
> 2014-01-14 12:32:18 INFO [qtp1303027754-18059] org.sonatype.nexus.apachehttpclient.Hc4ProviderBase$DefaultHttpClientImpl - Retrying request
> {quote}
> "Muting" the logger category or raising level to WARN is not an option, as we do not want to "mute" whole HttpClient4x.
> This is emitted by DefaultRequestDirector at INFO level, but is merely a log-spam, as it does not offer much information about actual host/target causing it.
> I'd propose to equip these messages with some technical and contextual information. Patch will be provided in few.
> Note: another option would be to just "lower" these logs (or one of the two) to DEBUG level, and leave the "Retrying request" part but with target host added.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org