mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-26 16:46:28 +00:00
repmgrd: report version number *after* logger initialisation
This ensures the version number always makes it into the log destination. Implements GitHub #487.
This commit is contained in:
1
HISTORY
1
HISTORY
@@ -2,6 +2,7 @@
|
|||||||
4.1.1 2018-??-??
|
4.1.1 2018-??-??
|
||||||
repmgrd: ensure that sending SIGHUP always results in the log file
|
repmgrd: ensure that sending SIGHUP always results in the log file
|
||||||
being reopened; GitHub #485 (Ian)
|
being reopened; GitHub #485 (Ian)
|
||||||
|
repmgrd: report version number *after* logger initialisation; GitHub #487 (Ian)
|
||||||
|
|
||||||
4.1.0 2018-07-31
|
4.1.0 2018-07-31
|
||||||
repmgr: change default log_level to INFO, add documentation; GitHub #470 (Ian)
|
repmgr: change default log_level to INFO, add documentation; GitHub #470 (Ian)
|
||||||
|
|||||||
@@ -34,6 +34,14 @@
|
|||||||
(GitHub #485).
|
(GitHub #485).
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
<application>repmgrd</application>: report version number <emphasis>after</emphasis>
|
||||||
|
logger initialisation. (GitHub #487).
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
|
||||||
</itemizedlist>
|
</itemizedlist>
|
||||||
</para>
|
</para>
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|||||||
@@ -320,8 +320,6 @@ main(int argc, char **argv)
|
|||||||
strncpy(config_file_options.log_level, cli_log_level, MAXLEN);
|
strncpy(config_file_options.log_level, cli_log_level, MAXLEN);
|
||||||
}
|
}
|
||||||
|
|
||||||
log_notice(_("repmgrd (repmgr %s) starting up"), REPMGR_VERSION);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* -m/--monitoring-history, if provided, will override repmgr.conf's
|
* -m/--monitoring-history, if provided, will override repmgr.conf's
|
||||||
* monitoring_history; this is for backwards compatibility as it's
|
* monitoring_history; this is for backwards compatibility as it's
|
||||||
@@ -349,6 +347,8 @@ main(int argc, char **argv)
|
|||||||
|
|
||||||
logger_init(&config_file_options, progname());
|
logger_init(&config_file_options, progname());
|
||||||
|
|
||||||
|
log_notice(_("repmgrd (%s %s) starting up"), progname(), REPMGR_VERSION);
|
||||||
|
|
||||||
if (verbose)
|
if (verbose)
|
||||||
logger_set_verbose();
|
logger_set_verbose();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user