You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by GitBox <gi...@apache.org> on 2020/06/02 16:23:36 UTC

[GitHub] [maven] 2997ms commented on a change in pull request #360: [MNG-6891] Delete the useless codes which won't be executed

2997ms commented on a change in pull request #360:
URL: https://github.com/apache/maven/pull/360#discussion_r434009485



##########
File path: maven-slf4j-wrapper/src/main/java/org/apache/maven/logwrapper/LogLevelRecorder.java
##########
@@ -42,14 +42,7 @@
 
     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 );

Review comment:
       We only accept this two level logging https://github.com/apache/maven/pull/337/files#diff-1539b34a819f425067138253cfac27adR35
   And the logging level value is `   ERROR(40, "ERROR"),
       WARN(30, "WARN"),
       INFO(20, "INFO"),
       DEBUG(10, "DEBUG"),
       TRACE(0, "TRACE");`




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org