1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2024-11-25 09:01:48 +02:00

[Issue #178] enabled logging into file breaks recovery via archive-get

This commit is contained in:
Grigory Smolkin 2020-03-03 23:42:10 +03:00
parent c2f3968736
commit c3d716383a

View File

@ -533,6 +533,14 @@ main(int argc, char *argv[])
setMyLocation();
}
/* disable logging into file for archive-push and archive-get */
if (backup_subcmd == ARCHIVE_GET_CMD ||
backup_subcmd == ARCHIVE_PUSH_CMD)
{
instance_config.logger.log_level_file = LOG_OFF;
}
/* Just read environment variables */
if (backup_path == NULL && backup_subcmd == CHECKDB_CMD)
config_get_opt_env(instance_options);