mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-26 08:36:30 +00:00
repmgr: pass explicitly provided log level when executing repmgr remotely
This makes it possible to return log output when executing repmgr remotely at a different level to the one defined in the remote repmgr's repmgr.conf. This is particularly useful when DEBUG output is required.
This commit is contained in:
@@ -3167,6 +3167,18 @@ make_remote_repmgr_path(PQExpBufferData *output_buf, t_node_info *remote_node_re
|
||||
"%s -f %s ",
|
||||
progname(),
|
||||
remote_node_record->config_file);
|
||||
|
||||
/*
|
||||
* If --log-level was explicitly supplied, pass that through
|
||||
* to the remote repmgr client too.
|
||||
*/
|
||||
if (runtime_options.log_level[0] != '\0')
|
||||
{
|
||||
appendPQExpBuffer(output_buf,
|
||||
" -L %s ",
|
||||
runtime_options.log_level);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user