[ http://jira.codehaus.org/browse/MNG-2351?page=all ]

Jason van Zyl updated MNG-2351:
-------------------------------

    Affects Version/s:     (was: 2.1)
                       2.1.x
        Fix Version/s:     (was: 2.0.x)
                       2.1-alpha-1

> mvn -X doesn't enable debugging
> -------------------------------
>
>                 Key: MNG-2351
>                 URL: http://jira.codehaus.org/browse/MNG-2351
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Embedding
>    Affects Versions: 2.1.x
>            Reporter: Jerome Lacoste
>         Assigned To: Jason van Zyl
>             Fix For: 2.1-alpha-1
>
>
> mvn -X doesn't enable debugging
> If I add the following code to DefaultMaven.execute(...)
>     public void execute( MavenExecutionRequest request )
>         throws MavenExecutionException
>         [...]
>         
>         loggerManager.setThreshold( request.getLoggingLevel() );
>         // ADDED
>         loggerManager.getLoggerForComponent( Maven.ROLE ).info( "XXX logging 
> level " + request.getLoggingLevel());
>         loggerManager.getLoggerForComponent( Maven.ROLE ).debug( "XXX logging 
> level " + request.getLoggingLevel());
>         System.err.println("XXX logging level " + request.getLoggingLevel());
>         System.err.println("XXX show errors " + request.isShowErrors());
>         System.err.println("XXX logger threshold " + 
> loggerManager.getLoggerForComponent( Maven.ROLE ).getThreshold());
>         // end of ADDED
> I get:
> [INFO] XXX logging level 0
> XXX logging level 0
> XXX show errors true
> XXX logger threshold 1
> Looks like something is wrong with regard to thresholds in the Maven.ROLE 
> component.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to