Skip to content

Commit 85adfcb

Browse files
committed
bugfix: initialize log_file_level after reading config, not before
1 parent bfa3054 commit 85adfcb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/pg_probackup.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -310,9 +310,6 @@ main(int argc, char *argv[])
310310
if (rc != -1 && !S_ISDIR(stat_buf.st_mode))
311311
elog(ERROR, "-B, --backup-path must be a path to directory");
312312

313-
/* Initialize logger */
314-
init_logger(backup_path);
315-
316313
/* command was initialized for a few commands */
317314
if (command)
318315
{
@@ -365,6 +362,9 @@ main(int argc, char *argv[])
365362
pgut_readopt(path, options, ERROR);
366363
}
367364

365+
/* Initialize logger */
366+
init_logger(backup_path);
367+
368368
/*
369369
* We have read pgdata path from command line or from configuration file.
370370
* Ensure that pgdata is an absolute path.

0 commit comments

Comments
 (0)