[MNG-6891] delete useless codes

Author: 2997ms <wangchong756@gmail.com>
This commit is contained in:
rfscholte 2020-06-20 16:47:43 +02:00
parent 954cd81c9b
commit 1e5bf55e12
1 changed files with 1 additions and 8 deletions

View File

@ -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 )