repmgr: don't display timestamp in log output

Differentiate between repmgr and repmgrd output
This commit is contained in:
Ian Barwick
2016-12-05 10:44:30 +09:00
parent 227f0190f7
commit 9788b2bd29
5 changed files with 45 additions and 13 deletions

View File

@@ -265,6 +265,13 @@ main(int argc, char **argv)
exit(1);
}
/*
* Tell the logger we're a command-line program - this will
* ensure any output logged before the logger is initialized
* will be formatted correctly
*/
logger_output_mode = OM_COMMAND_LINE;
initialize_conninfo_params(&source_conninfo, true);
/*
@@ -837,7 +844,7 @@ main(int argc, char **argv)
* which makes little sense for a command line program.
*/
logger_init(&options, progname(), true);
logger_init(&options, progname());
if (runtime_options.verbose)
logger_set_verbose();