Rename "logxxx" configuration file parameters to "log_xxx"

This is more consistent with other parameters and conforms to
the pattern used by PostgreSQL itself, which uses the prefix "log_"
for logging parameters.

A warning will be emitted if the old version of the parameter name
is detected.
This commit is contained in:
Ian Barwick
2017-07-03 10:28:56 +09:00
parent debe5a18c5
commit 34c746fcde
10 changed files with 81 additions and 45 deletions

View File

@@ -399,7 +399,7 @@ main(int argc, char **argv)
int detected_log_level = detect_log_level(optarg);
if (detected_log_level != -1)
{
strncpy(runtime_options.loglevel, optarg, MAXLEN);
strncpy(runtime_options.log_level, optarg, MAXLEN);
}
else
{
@@ -701,9 +701,9 @@ main(int argc, char **argv)
/* Some configuration file items can be overriden by command line options */
/* Command-line parameter -L/--log-level overrides any setting in config file*/
if (*runtime_options.loglevel != '\0')
if (*runtime_options.log_level != '\0')
{
strncpy(config_file_options.loglevel, runtime_options.loglevel, MAXLEN);
strncpy(config_file_options.log_level, runtime_options.log_level, MAXLEN);
}
/*