Skip to content

Commit 71d950f

Browse files
committed
Enhanced logging for protected functions by including contract name in log message
1 parent f864676 commit 71d950f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/it/unipr/crosschain/functions/ProtectedFunctionFinder.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ private void checkForProtection(Statement sink, EVMCFG cfg, Set<Integer> jumpiPp
107107
// ((ProgramCounterLocation) sink.getLocation()).getSourceCodeLine());
108108

109109
functionSignature.setProtected(true);
110-
log.info("Function {} is protected", functionSignature.getFullSignature());
110+
log.info("Function {} in {} is protected", functionSignature.getFullSignature(),
111+
contract.getName());
111112
}
112113
}
113114
}

0 commit comments

Comments
 (0)