Skip to content

Commit 5c7cf18

Browse files
authored
Use fog pg_probackup3 log level TRACE insted of VERBOSE and don't use -j and --batch-size keys (#138)
1 parent 8b6b813 commit 5c7cf18

File tree

1 file changed

+7
-3
lines changed
  • testgres/plugins/pg_probackup2/pg_probackup2

1 file changed

+7
-3
lines changed

testgres/plugins/pg_probackup2/pg_probackup2/app.py

+7-3
Original file line numberDiff line numberDiff line change
@@ -705,9 +705,13 @@ def set_archiving(
705705
if overwrite:
706706
archive_command += ' --overwrite'
707707

708-
archive_command += ' --log-level-console=VERBOSE'
709-
archive_command += ' -j 5'
710-
archive_command += ' --batch-size 10'
708+
if init_params.major_version > 2:
709+
archive_command += ' --log-level-console=trace'
710+
else:
711+
archive_command += ' --log-level-console=VERBOSE'
712+
archive_command += ' -j 5'
713+
archive_command += ' --batch-size 10'
714+
711715
archive_command += ' --no-sync'
712716

713717
if archive_timeout:

0 commit comments

Comments
 (0)