You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (JIRA)" <ji...@apache.org> on 2017/03/04 21:17:45 UTC

[jira] [Commented] (MNG-6181) Wagon produces a lot of noice at debug loglevel

    [ https://issues.apache.org/jira/browse/MNG-6181?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15895881#comment-15895881 ] 

Michael Osipov commented on MNG-6181:
-------------------------------------

This is not a bug, but rather a result of several previous issues. Apache HttpComponents unfortunately still uses Commons Logging (HTTPCLIENT-1664). As you might now, Wagon HTTP Provider is added as a shaded JAR to Maven distribution.  Up until WAGON-471 Commons Logging was shaded, but had no effect because it could not log anywhere. Now JCL over SLF4J is used and HttpComponents can log just like every other dependency. Since {{-X}} enables debug on all loggers, you see the entire HTTP comm as well. So the issue existed eversince, but simply was not visible. In short-term you can explicitly [disable logging on HttpComponents|https://hc.apache.org/httpcomponents-client-ga/logging.html] in {{org.apache.maven.cli.logging.impl.*}}, in the long-term you'd require every single logging component to register its logger name. Consider that the former option likely takes away the possibility to enable debug logging with HttpComponents to trace errors.

> Wagon produces a lot of noice at debug loglevel
> -----------------------------------------------
>
>                 Key: MNG-6181
>                 URL: https://issues.apache.org/jira/browse/MNG-6181
>             Project: Maven
>          Issue Type: Bug
>          Components: Dependencies, Logging
>    Affects Versions: 3.5.0-alpha-1
>            Reporter: Robert Scholte
>            Priority: Critical
>             Fix For: 3.5.0-candidate
>
>
> Empty your repository and run {{mvn compile -X}} on any project.
> You'll see all headers and the content (either as text or bytes) and more for every downloaded file by Wagon, making the loggin useless.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)