Skip to content

Commit c3d7163

Browse files
committed
[Issue #178] enabled logging into file breaks recovery via archive-get
1 parent c2f3968 commit c3d7163

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/pg_probackup.c

+8
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,14 @@ main(int argc, char *argv[])
533533
setMyLocation();
534534
}
535535

536+
/* disable logging into file for archive-push and archive-get */
537+
if (backup_subcmd == ARCHIVE_GET_CMD ||
538+
backup_subcmd == ARCHIVE_PUSH_CMD)
539+
{
540+
instance_config.logger.log_level_file = LOG_OFF;
541+
}
542+
543+
536544
/* Just read environment variables */
537545
if (backup_path == NULL && backup_subcmd == CHECKDB_CMD)
538546
config_get_opt_env(instance_options);

0 commit comments

Comments
 (0)