aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2019-07-01 13:34:31 +0200
committerPeter Eisentraut <peter@eisentraut.org>2019-07-01 13:34:31 +0200
commit95bbe5d82e428db342fa3ec60b95f1b9873741e5 (patch)
tree42dcb49c111cbacaebc93b5283eaa172982b734d
parent1b29e990e352885642149262859b83c19d362405 (diff)
downloadpostgresql-95bbe5d82e428db342fa3ec60b95f1b9873741e5.tar.gz
postgresql-95bbe5d82e428db342fa3ec60b95f1b9873741e5.zip
Convert some stragglers to new frontend logging API
-rw-r--r--src/bin/initdb/initdb.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/bin/initdb/initdb.c b/src/bin/initdb/initdb.c
index ad5cd4194a7..2ef179165b8 100644
--- a/src/bin/initdb/initdb.c
+++ b/src/bin/initdb/initdb.c
@@ -2663,8 +2663,8 @@ setup_text_search(void)
default_text_search_config = find_matching_ts_config(lc_ctype);
if (!default_text_search_config)
{
- printf(_("%s: could not find suitable text search configuration for locale \"%s\"\n"),
- progname, lc_ctype);
+ pg_log_info("could not find suitable text search configuration for locale \"%s\"",
+ lc_ctype);
default_text_search_config = "simple";
}
}
@@ -2674,13 +2674,13 @@ setup_text_search(void)
if (checkmatch == NULL)
{
- printf(_("%s: warning: suitable text search configuration for locale \"%s\" is unknown\n"),
- progname, lc_ctype);
+ pg_log_warning("suitable text search configuration for locale \"%s\" is unknown",
+ lc_ctype);
}
else if (strcmp(checkmatch, default_text_search_config) != 0)
{
- printf(_("%s: warning: specified text search configuration \"%s\" might not match locale \"%s\"\n"),
- progname, default_text_search_config, lc_ctype);
+ pg_log_warning("specified text search configuration \"%s\" might not match locale \"%s\"",
+ default_text_search_config, lc_ctype);
}
}