return logRecords;
}
@SuppressWarnings("deprecation")
private void deobfuscate(LogRecord record) {
WrappedClientThrowable wrappedClientThrowable = record.getModifiableWrappedClientThrowable();
if (wrappedClientThrowable == null) {
// no throwable to deobfuscate
return;
}
String permutationStrongName = getPermutationStrongName();
StackTraceElement[] originalStackTrace = wrappedClientThrowable.getClientStackTrace();
StackTraceElement[] deobfuscatedStackTrace = deobfuscator.deobfuscateStackTrace(
originalStackTrace, permutationStrongName);
// Verify each permutation once that a symbolMap is available
if (permutationStrongNamesChecked.add(permutationStrongName)) {
if (equal(originalStackTrace, deobfuscatedStackTrace)) {
Log.warn("Failed to deobfuscate stack trace for permutation " + permutationStrongName
+ ". Verify that the corresponding symbolMap is available.");
}
}
wrappedClientThrowable.setClientStackTrace(deobfuscatedStackTrace);
}