File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/main/java/com/mergebase/log4j Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -231,6 +231,7 @@ private static void findLog4jRecursive(
231
231
boolean isLog4j2_12_2 = false ;
232
232
boolean isLog4j2_12_2_override = false ;
233
233
byte [] pomProperties = null ;
234
+ String pomPath = null ;
234
235
ZipEntry ze ;
235
236
while (true ) {
236
237
try {
@@ -323,6 +324,7 @@ public void close() {
323
324
} else {
324
325
if (pathLower .endsWith (POM_PROPERTIES )) {
325
326
pomProperties = bytes ;
327
+ pomPath = "!/" + path ;
326
328
} else if (pathLower .endsWith (FILE_OLD_LOG4J )) {
327
329
isLog4J1_X = true ;
328
330
} else if (pathLower .endsWith (FILE_LOG4J_1 )) {
@@ -364,7 +366,7 @@ public void close() {
364
366
if (conditionsChecked ) {
365
367
if (!log4jProbe [0 ] || !log4jProbe [1 ] || !log4jProbe [2 ] || !log4jProbe [3 ] || !log4jProbe [4 ]) {
366
368
if (pomProperties != null ) {
367
- System .err .println ("-- Warning: " + zipPath + " does not contain Log4J bytecode, but claims it does. " );
369
+ System .err .println ("-- Warning: " + zipPath + " does not contain Log4J bytecode, but claims it does (" + pomPath + ") " );
368
370
ByteArrayInputStream byteIn = new ByteArrayInputStream (pomProperties );
369
371
Properties p = new Properties ();
370
372
try {
You can’t perform that action at this time.
0 commit comments