public static void traceMessageIds ( TraceComponent callersTrace , String action , SIMessageHandle [ ] messageHandles ) { if ( ( light_tc . isDebugEnabled ( ) || callersTrace . isDebugEnabled ( ) ) && messageHandles != null ) { // Build our trace string StringBuffer trcBuffer = new StringBuffer ( ) ; trcBuffer . append ( action + ": [" ) ; for ( int i = 0 ; i < messageHandles . length ; i ++ ) { if ( i != 0 ) trcBuffer . append ( "," ) ; if ( messageHandles [ i ] != null ) { trcBuffer . append ( messageHandles [ i ] . getSystemMessageId ( ) ) ; } } trcBuffer . append ( "]" ) ; // Trace using the correct trace group if ( light_tc . isDebugEnabled ( ) ) { SibTr . debug ( light_tc , trcBuffer . toString ( ) ) ; } else { SibTr . debug ( callersTrace , trcBuffer . toString ( ) ) ; } } }
Allow tracing of messages and transaction when deleting