Fixup for commit
c05dee19112. It fits better with the style and APIs
to print separate primary and a detail messages instead of one
multiline message.
Reviewed-by: Euler Taveira <euler@eulerto.com>
Reviewed-by: Peter Smith <smithpb2250@gmail.com>
Reviewed-by: Álvaro Herrera <alvherre@kurilemu.de>
Discussion: https://postgr.es/m/CAHut+PsvQJQnQO0KT0S2oegenkvJ8FUuY-QS5syyqmT24R2xFQ@mail.gmail.com
}
if (dryrun)
- pg_log_info("Executing in dry-run mode.\n"
- "No files will be removed.");
+ {
+ pg_log_info("executing in dry-run mode");
+ pg_log_info_detail("No files will be removed.");
+ }
/*
* Check archive exists and other initialization if required.
}
if (dry_run)
- pg_log_info("Executing in dry-run mode.\n"
- "The target directory will not be modified.");
+ {
+ pg_log_info("executing in dry-run mode");
+ pg_log_info_detail("The target directory will not be modified.");
+ }
pg_log_info("validating publisher connection string");
pub_base_conninfo = get_base_conninfo(opt.pub_conninfo_str,
opt.manifest_checksums = CHECKSUM_TYPE_NONE;
if (opt.dry_run)
- pg_log_info("Executing in dry-run mode.\n"
- "The target directory will not be modified.");
+ {
+ pg_log_info("executing in dry-run mode");
+ pg_log_info_detail("The target directory will not be modified.");
+ }
/* Check that the platform supports the requested copy method. */
if (opt.copy_method == COPY_METHOD_CLONE)
/* Ok, we have all the options and we're ready to start. */
if (dry_run)
- pg_log_info("Executing in dry-run mode.\n"
- "The target directory will not be modified.");
+ {
+ pg_log_info("executing in dry-run mode");
+ pg_log_info_detail("The target directory will not be modified.");
+ }
/* First, connect to remote server. */
if (connstr_source)
"missing-stats-only", "analyze-only", "analyze-in-stages");
if (vacopts.dry_run && !vacopts.quiet)
- pg_log_info("Executing in dry-run mode.\n"
- "No commands will be sent to the server.");
+ {
+ pg_log_info("executing in dry-run mode");
+ pg_log_info_detail("No commands will be sent to the server.");
+ }
ret = vacuuming_main(&cparams, dbname, maintenance_db, &vacopts,
&objects, tbl_count,