repmgrd: log receipt of SIGINT/SIGTERM

This commit is contained in:
Ian Barwick
2019-01-23 13:15:38 +09:00
parent 0970789b1d
commit efe4a9c344
2 changed files with 6 additions and 2 deletions

View File

@@ -43,10 +43,12 @@ handle_sigint_bdr(SIGNAL_ARGS)
initPQExpBuffer(&event_details);
appendPQExpBuffer(&event_details,
"%s signal received",
_("%s signal received"),
postgres_signal_arg == SIGTERM
? "TERM" : "INT");
log_notice("%s", event_details.data);
create_event_notification(local_conn,
&config_file_options,
config_file_options.node_id,