postgres.git / summary / log / commit / refs
commit cc893b82370b5d68e0a72f5bb1663644a3a0351d
Author: Andrew Dunstan <andrew@dunslane.net>
Date: Wed Apr 24 11:52:52 2024 +0000
First released in: 17.0
Add pg_logging_init() calls missing in commit ba3e6e2bca
As noticed by Michael Paquier.
src/test/modules/test_json_parser/test_json_parser_incremental.c | 2 ++
src/test/modules/test_json_parser/test_json_parser_perf.c | 2 ++
2 files changed, 4 insertions(+)
diff --git a/src/test/modules/test_json_parser/test_json_parser_incremental.c b/src/test/modules/test_json_parser/test_json_parser_incremental.c
index b2195cb8113..0bc047a4af4 100644
--- a/src/test/modules/test_json_parser/test_json_parser_incremental.c
+++ b/src/test/modules/test_json_parser/test_json_parser_incremental.c
@@ -89,6 +89,8 @@ main(int argc, char **argv)
int c;
bool need_strings = false;
+ pg_logging_init(argv[0]);
+
while ((c = getopt(argc, argv, "c:s")) != -1)
{
switch (c)
diff --git a/src/test/modules/test_json_parser/test_json_parser_perf.c b/src/test/modules/test_json_parser/test_json_parser_perf.c
index f5c0e8dd9ae..ea85626cbd8 100644
--- a/src/test/modules/test_json_parser/test_json_parser_perf.c
+++ b/src/test/modules/test_json_parser/test_json_parser_perf.c
@@ -43,6 +43,8 @@ main(int argc, char **argv)
int iter;
int use_inc = 0;
+ pg_logging_init(argv[0]);
+
initStringInfo(&json);
if (strcmp(argv[1], "-i") == 0)
[parent: 9d353639c3b3]