Skip to content

Commit 95bbe5d

Browse files
committed
Convert some stragglers to new frontend logging API
1 parent 1b29e99 commit 95bbe5d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/bin/initdb/initdb.c

+6-6
Original file line numberDiff line numberDiff line change
@@ -2663,8 +2663,8 @@ setup_text_search(void)
26632663
default_text_search_config = find_matching_ts_config(lc_ctype);
26642664
if (!default_text_search_config)
26652665
{
2666-
printf(_("%s: could not find suitable text search configuration for locale \"%s\"\n"),
2667-
progname, lc_ctype);
2666+
pg_log_info("could not find suitable text search configuration for locale \"%s\"",
2667+
lc_ctype);
26682668
default_text_search_config = "simple";
26692669
}
26702670
}
@@ -2674,13 +2674,13 @@ setup_text_search(void)
26742674

26752675
if (checkmatch == NULL)
26762676
{
2677-
printf(_("%s: warning: suitable text search configuration for locale \"%s\" is unknown\n"),
2678-
progname, lc_ctype);
2677+
pg_log_warning("suitable text search configuration for locale \"%s\" is unknown",
2678+
lc_ctype);
26792679
}
26802680
else if (strcmp(checkmatch, default_text_search_config) != 0)
26812681
{
2682-
printf(_("%s: warning: specified text search configuration \"%s\" might not match locale \"%s\"\n"),
2683-
progname, default_text_search_config, lc_ctype);
2682+
pg_log_warning("specified text search configuration \"%s\" might not match locale \"%s\"",
2683+
default_text_search_config, lc_ctype);
26842684
}
26852685
}
26862686

0 commit comments

Comments
 (0)