Skip to content

Commit d9c8614

Browse files
committed
call to ctx.log for restricted context debugging purposes.
1 parent fe2209e commit d9c8614

File tree

1 file changed

+3
-0
lines changed
  • jpos/src/main/java/org/jpos/transaction/participant

1 file changed

+3
-0
lines changed

jpos/src/main/java/org/jpos/transaction/participant/Debug.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929

3030
public class Debug extends Log implements AbortParticipant {
3131
public int prepare (long id, Serializable o) {
32+
if (o instanceof Context ctx) {
33+
ctx.log("Debug::prepare");
34+
}
3235
Logger.log (createEvent ("prepare", id, (Context) o));
3336
return PREPARED | READONLY;
3437
}

0 commit comments

Comments
 (0)