mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-25 08:06:29 +00:00
fix: also close stderr when using syslog logging
This commit is contained in:
@@ -281,6 +281,11 @@ main(int argc, char **argv)
|
|||||||
if (verbose)
|
if (verbose)
|
||||||
logger_min_verbose(LOG_INFO);
|
logger_min_verbose(LOG_INFO);
|
||||||
|
|
||||||
|
if (log_type == REPMGR_SYSLOG)
|
||||||
|
{
|
||||||
|
fclose(stderr);
|
||||||
|
}
|
||||||
|
|
||||||
snprintf(repmgr_schema, MAXLEN, "%s%s", DEFAULT_REPMGR_SCHEMA_PREFIX, local_options.cluster_name);
|
snprintf(repmgr_schema, MAXLEN, "%s%s", DEFAULT_REPMGR_SCHEMA_PREFIX, local_options.cluster_name);
|
||||||
|
|
||||||
log_info(_("%s Connecting to database '%s'\n"), progname, local_options.conninfo);
|
log_info(_("%s Connecting to database '%s'\n"), progname, local_options.conninfo);
|
||||||
|
|||||||
Reference in New Issue
Block a user