Make the default log level INFO

This ensures that repmgrd outputs a reasonable amount of logging
information at the default log level.
This commit is contained in:
Ian Barwick
2019-02-21 14:43:14 +09:00
parent 243b5d2b48
commit 120dd5b82d
4 changed files with 8 additions and 6 deletions

View File

@@ -1,5 +1,7 @@
3.4.0 2019-02
3.4.0 2019-02-
default log level is now INFO
repmgr: fix `standby register --force` when updating existing node record (Ian)
repmgrd: set LSN shared memory value at standby startup (Ian)
3.3.2 2017-06-01
Add support for PostgreSQL 10 (Ian)

View File

@@ -59,7 +59,7 @@ progname(void)
* added/changed in reload_config()
*
* NOTE: this function is called before the logger is set up, so we need
* to handle the verbose option ourselves; also the default log level is NOTICE,
* to handle the verbose option ourselves; also the default log level is INFO,
* so we can't use DEBUG.
*/
bool

4
log.c
View File

@@ -44,8 +44,8 @@ static void _stderr_log_with_level(const char *level_name, int level, const char
__attribute__((format(PG_PRINTF_ATTRIBUTE, 3, 0)));
int log_type = REPMGR_STDERR;
int log_level = LOG_NOTICE;
int last_log_level = LOG_NOTICE;
int log_level = LOG_INFO;
int last_log_level = LOG_INFO;
int verbose_logging = false;
int terse_logging = false;
/*

View File

@@ -66,8 +66,8 @@
# -------------------------------
# Log level: possible values are DEBUG, INFO, NOTICE, WARNING, ERR, ALERT, CRIT or EMERG
# (default: NOTICE)
#loglevel=NOTICE
# (default: INFO)
#loglevel=INFO
# Note that logging facility settings will only apply to `repmgrd` by default;
# `repmgr` will always write to STDERR unless the switch `--log-to-file` is