@@ -108,11 +108,11 @@ decoder_raw_begin_txn(LogicalDecodingContext *ctx, ReorderBufferTXN *txn)
108
108
Assert (lastXid != txn -> xid );
109
109
lastXid = txn -> xid ;
110
110
if (MMIsLocalTransaction (txn -> xid )) {
111
- MTM_TRACE ("Skip local transaction %u\n " , txn -> xid );
111
+ MTM_LOG3 ("Skip local transaction %u" , txn -> xid );
112
112
data -> isLocal = true;
113
113
} else {
114
114
OutputPluginPrepareWrite (ctx , true);
115
- MTM_TRACE ("Send transaction %u to replica\n " , txn -> xid );
115
+ MTM_LOG3 ("Send transaction %u to replica" , txn -> xid );
116
116
appendStringInfo (ctx -> out , "BEGIN %u;" , txn -> xid );
117
117
OutputPluginWrite (ctx , true);
118
118
data -> isLocal = false;
@@ -126,12 +126,12 @@ decoder_raw_commit_txn(LogicalDecodingContext *ctx, ReorderBufferTXN *txn,
126
126
{
127
127
DecoderRawData * data = ctx -> output_plugin_private ;
128
128
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 );
130
130
OutputPluginPrepareWrite (ctx , true);
131
131
appendStringInfoString (ctx -> out , "COMMIT;" );
132
132
OutputPluginWrite (ctx , true);
133
133
} else {
134
- MTM_TRACE ("Skip commit of transaction %u\n " , txn -> xid );
134
+ MTM_LOG3 ("Skip commit of transaction %u" , txn -> xid );
135
135
}
136
136
}
137
137
@@ -483,10 +483,10 @@ decoder_raw_change(LogicalDecodingContext *ctx, ReorderBufferTXN *txn,
483
483
484
484
data = ctx -> output_plugin_private ;
485
485
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 );
487
487
return ;
488
488
}
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 );
490
490
491
491
/* Avoid leaking memory by using and resetting our own context */
492
492
old = MemoryContextSwitchTo (data -> context );
0 commit comments