mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-25 16:16:29 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user