mirror of https://github.com/apache/maven.git
[MNG-6891] delete useless codes
Author: 2997ms <wangchong756@gmail.com>
This commit is contained in:
parent
954cd81c9b
commit
1e5bf55e12
|
@ -42,14 +42,7 @@ public class LogLevelRecorder
|
|||
|
||||
public LogLevelRecorder( String threshold )
|
||||
{
|
||||
Level level = determineThresholdLevel( threshold );
|
||||
|
||||
if ( level.toInt() < Level.WARN.toInt() )
|
||||
{
|
||||
throw new IllegalArgumentException( "Logging severity thresholds can only be set to WARN or ERROR" );
|
||||
}
|
||||
|
||||
logThreshold = level;
|
||||
logThreshold = determineThresholdLevel( threshold );
|
||||
}
|
||||
|
||||
private Level determineThresholdLevel( String input )
|
||||
|
|
Loading…
Reference in New Issue