@@ -108,11 +108,11 @@ decoder_raw_begin_txn(LogicalDecodingContext *ctx, ReorderBufferTXN *txn)
108108Assert (lastXid != txn -> xid );
109109lastXid = txn -> xid ;
110110if (MMIsLocalTransaction (txn -> xid )) {
111- MTM_TRACE ("Skip local transaction %u\n " ,txn -> xid );
111+ MTM_LOG3 ("Skip local transaction %u" ,txn -> xid );
112112data -> isLocal = true;
113113 }else {
114114OutputPluginPrepareWrite (ctx , true);
115- MTM_TRACE ("Send transaction %u to replica\n " ,txn -> xid );
115+ MTM_LOG3 ("Send transaction %u to replica" ,txn -> xid );
116116appendStringInfo (ctx -> out ,"BEGIN %u;" ,txn -> xid );
117117OutputPluginWrite (ctx , true);
118118data -> isLocal = false;
@@ -126,12 +126,12 @@ decoder_raw_commit_txn(LogicalDecodingContext *ctx, ReorderBufferTXN *txn,
126126{
127127DecoderRawData * data = ctx -> output_plugin_private ;
128128if (!data -> isLocal ) {
129- MTM_TRACE ("Send commit of transaction %u to replica\n " ,txn -> xid );
129+ MTM_LOG3 ("Send commit of transaction %u to replica" ,txn -> xid );
130130OutputPluginPrepareWrite (ctx , true);
131131appendStringInfoString (ctx -> out ,"COMMIT;" );
132132OutputPluginWrite (ctx , true);
133133 }else {
134- MTM_TRACE ("Skip commit of transaction %u\n " ,txn -> xid );
134+ MTM_LOG3 ("Skip commit of transaction %u" ,txn -> xid );
135135 }
136136}
137137
@@ -483,10 +483,10 @@ decoder_raw_change(LogicalDecodingContext *ctx, ReorderBufferTXN *txn,
483483
484484data = ctx -> output_plugin_private ;
485485if (data -> isLocal ) {
486- MTM_TRACE ("Skip action %d in transaction %u\n " ,change -> action ,txn -> xid );
486+ MTM_LOG3 ("Skip action %d in transaction %u" ,change -> action ,txn -> xid );
487487return ;
488488 }
489- MTM_TRACE ("Send action %d in transaction %u to replica\n " ,change -> action ,txn -> xid );
489+ MTM_LOG3 ("Send action %d in transaction %u to replica" ,change -> action ,txn -> xid );
490490
491491/* Avoid leaking memory by using and resetting our own context */
492492old = MemoryContextSwitchTo (data -> context );