log unknown action codes only when detailed logging is enabled (there are a lot of unknown action in obfuscated files)

This commit is contained in:
honfika@gmail.com
2015-03-31 13:45:45 +02:00
parent efa71dcba5
commit aec353f88d

View File

@@ -1792,7 +1792,9 @@ public class SWFInputStream implements AutoCloseable {
Action r = new ActionNop();
r.actionCode = actionCode;
r.actionLength = actionLength;
logger.log(Level.SEVERE, "Unknown action code: {0}", actionCode);
if (Configuration.useDetailedLogging.get()) {
logger.log(Level.SEVERE, "Unknown action code: {0}", actionCode);
}
return r;
}
} catch (EndOfStreamException | ArrayIndexOutOfBoundsException eos) {