Skip to content

Commit

Permalink
Remove an extremely verbose debug-level message.
Browse files Browse the repository at this point in the history
  • Loading branch information
jglick committed May 15, 2018
1 parent d7593bf commit 628f2f3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
3 changes: 1 addition & 2 deletions src/it/enforce-bytecode-version-multirelease/verify.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ assert file.exists();

String text = file.getText("utf-8");

assert text.contains( "[DEBUG] META-INF/versions/9/org/apache/logging/log4j/util/ProcessIdUtil.class => major=53,minor=0" )
assert text.contains( "[DEBUG] META-INF/versions/9/org/apache/logging/log4j/util/StackLocator.class => major=53,minor=0" )
assert text.contains( '[DEBUG] log4j-api-2.9.0.jar => ' )

return true;
Original file line number Diff line number Diff line change
Expand Up @@ -295,11 +295,6 @@ private String isBadArtifact( Artifact a )
int minor = ( magicAndClassFileVersion[4] << 8 ) + magicAndClassFileVersion[5];
int major = ( magicAndClassFileVersion[6] << 8 ) + magicAndClassFileVersion[7];

if ( getLog().isDebugEnabled() )
{
getLog().debug( "\t" + entry.getName() + " => major=" + major + ",minor=" + minor );
}

// Assuming regex match is more expensive, verify bytecode versions first

if ( ( major > maxJavaMajorVersionNumber )
Expand Down

0 comments on commit 628f2f3

Please sign in to comment.