MNG-2570: logging configuration now no longer overwrites the default log level as specified in conf/logging/simplelogger.properties

Submitted by: Andreas Horst <horst.andreas82@gmail.com>
Signed-off-by: Jason van Zyl <jason@tesla.io>
This commit is contained in:
a-horst 2014-06-16 17:00:12 +02:00 committed by Jason van Zyl
parent 1a4c003a2b
commit d8fd65a3ae
1 changed files with 2 additions and 5 deletions

View File

@ -318,11 +318,8 @@ public class MavenCli
cliRequest.request.setLoggingLevel( MavenExecutionRequest.LOGGING_LEVEL_ERROR ); cliRequest.request.setLoggingLevel( MavenExecutionRequest.LOGGING_LEVEL_ERROR );
slf4jConfiguration.setRootLoggerLevel( Slf4jConfiguration.Level.ERROR ); slf4jConfiguration.setRootLoggerLevel( Slf4jConfiguration.Level.ERROR );
} }
else // else fall back to default log level specified in conf
{ // see http://jira.codehaus.org/browse/MNG-2570
cliRequest.request.setLoggingLevel( MavenExecutionRequest.LOGGING_LEVEL_INFO );
slf4jConfiguration.setRootLoggerLevel( Slf4jConfiguration.Level.INFO );
}
if ( cliRequest.commandLine.hasOption( CLIManager.LOG_FILE ) ) if ( cliRequest.commandLine.hasOption( CLIManager.LOG_FILE ) )
{ {