Content-Length: 252303 | pFad | http://github.com/postgrespro/postgres_cluster/commit/be41202edcf4997ff67c42621f089a815701cdba

4F use elog instead of printf in TXTRACE to avoid interleaved log messages · postgrespro/postgres_cluster@be41202 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/be41202edcf4997ff67c42621f089a815701cdba

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy