@@ -108,11 +108,11 @@ decoder_raw_begin_txn(LogicalDecodingContext *ctx, ReorderBufferTXN *txn)
108108 Assert (lastXid != txn -> xid );
109109 lastXid = txn -> xid ;
110110 if (MMIsLocalTransaction (txn -> xid )) {
111- MTM_TRACE ("Skip local transaction %u\n " , txn -> xid );
111+ MTM_LOG3 ("Skip local transaction %u" , txn -> xid );
112112 data -> isLocal = true;
113113 } else {
114114 OutputPluginPrepareWrite (ctx , true);
115- MTM_TRACE ("Send transaction %u to replica\n " , txn -> xid );
115+ MTM_LOG3 ("Send transaction %u to replica" , txn -> xid );
116116 appendStringInfo (ctx -> out , "BEGIN %u;" , txn -> xid );
117117 OutputPluginWrite (ctx , true);
118118 data -> isLocal = false;
@@ -126,12 +126,12 @@ decoder_raw_commit_txn(LogicalDecodingContext *ctx, ReorderBufferTXN *txn,
126126{
127127 DecoderRawData * data = ctx -> output_plugin_private ;
128128 if (!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 );
130130 OutputPluginPrepareWrite (ctx , true);
131131 appendStringInfoString (ctx -> out , "COMMIT;" );
132132 OutputPluginWrite (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
484484 data = ctx -> output_plugin_private ;
485485 if (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 );
487487 return ;
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 */
492492 old = MemoryContextSwitchTo (data -> context );
0 commit comments