Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit be41202

Browse files
committed
use elog instead of printf in TXTRACE to avoid interleaved log messages
1 parent 8f4b35a commit be41202

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

multimaster.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
#define MTM_TXTRACE(tx, event, ...)
4848
#else
4949
#define MTM_TXTRACE(tx, event, ...) \
50-
fprintf(stderr, MTM_TAG "%s, %lld, %u " event "\n", tx->gid, (long long)MtmGetSystemTime(), MyProcPid, ## __VA_ARGS__)
50+
elog(LOG, MTM_TAG "%s, %lld, %u " event "\n", tx->gid, (long long)MtmGetSystemTime(), MyProcPid, ## __VA_ARGS__)
5151
#endif
5252

5353
#define MULTIMASTER_NAME "multimaster"

0 commit comments

Comments
 (0)