mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-24 23:56:29 +00:00
Add -L/--log-level command line option to repmgr
Overrides any setting in the config file. This will replace the -v/--verbose option.
This commit is contained in:
4
log.c
4
log.c
@@ -39,7 +39,6 @@
|
||||
|
||||
/* #define REPMGR_DEBUG */
|
||||
|
||||
static int detect_log_level(const char *level);
|
||||
static int detect_log_facility(const char *facility);
|
||||
|
||||
int log_type = REPMGR_STDERR;
|
||||
@@ -217,7 +216,7 @@ logger_min_verbose(int minimum)
|
||||
log_level = minimum;
|
||||
}
|
||||
|
||||
static int
|
||||
int
|
||||
detect_log_level(const char *level)
|
||||
{
|
||||
if (!strcmp(level, "DEBUG"))
|
||||
@@ -247,7 +246,6 @@ detect_log_facility(const char *facility)
|
||||
|
||||
if (!strncmp(facility, "LOCAL", 5) && strlen(facility) == 6)
|
||||
{
|
||||
|
||||
local = atoi(&facility[5]);
|
||||
|
||||
switch (local)
|
||||
|
||||
Reference in New Issue
Block a user