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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy