mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-26 08:36:30 +00:00
Make verbose command line option useful on top of
the new logging infrastructure.
This commit is contained in:
11
log.c
11
log.c
@@ -130,6 +130,17 @@ bool logger_shutdown(void)
|
||||
return true;
|
||||
}
|
||||
|
||||
/*
|
||||
* Set a minimum logging level. Intended for command line verbosity
|
||||
* options, which might increase requested logging over what's specified
|
||||
* in the regular configuration file.
|
||||
*/
|
||||
void logger_min_verbose(int minimum)
|
||||
{
|
||||
if (log_level < minimum)
|
||||
log_level = minimum;
|
||||
}
|
||||
|
||||
int detect_log_level(const char* level)
|
||||
{
|
||||
if (!strcmp(level, "DEBUG"))
|
||||
|
||||
Reference in New Issue
Block a user