Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit78ac5bd

Browse files
committed
Add use_logging arg to replicate function too
1 parentfefd448 commit78ac5bd

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

‎testgres/testgres.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -937,18 +937,20 @@ def backup(self, username=None, xlog_method=DEFAULT_XLOG_METHOD):
937937
username=username,
938938
xlog_method=xlog_method)
939939

940-
defreplicate(self,name,username=None,xlog_method=DEFAULT_XLOG_METHOD):
940+
defreplicate(self,name,username=None,xlog_method=DEFAULT_XLOG_METHOD,
941+
use_logging=False):
941942
"""
942943
Create a replica of this node.
943944
944945
Args:
945946
name: replica's name (str).
946947
username: database user name (str).
947948
xlog_method: a method for collecting the logs ('fetch' | 'stream').
949+
use_logging: enable python logging
948950
"""
949951

950-
returnself.backup(username=username,
951-
xlog_method=xlog_method).spawn_replica(name)
952+
backup=self.backup(username=username,xlog_method=xlog_method)
953+
returnbackup.spawn_replica(name,use_logging=use_logging)
952954

953955
defcatchup(self):
954956
"""

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp