mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-22 22:56:29 +00:00
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:
4
HISTORY
4
HISTORY
@@ -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)
|
||||
|
||||
2
config.c
2
config.c
@@ -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
4
log.c
@@ -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;
|
||||
/*
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user