File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -193,12 +193,11 @@ def init(self, allows_streaming=False):
193193 # initialize cluster
194194 os .makedirs (self .data_dir )
195195 initdb = self .get_bin_path ("initdb" )
196- with open (self .output_filename , "a" ) as file_out , \
197- open (self .error_filename , "a" ) as file_err :
196+ with open (os .path .join (self .logs_dir , "initdb.log" ), "a" ) as file_out :
198197 ret = subprocess .call (
199198 [initdb , self .data_dir , "-N" ],
200199 stdout = file_out ,
201- stderr = file_err
200+ stderr = subprocess . STDOUT
202201 )
203202 if ret :
204203 raise ClusterException ("Cluster initialization failed" )
@@ -229,7 +228,7 @@ def init(self, allows_streaming=False):
229228 else :
230229 conf .write ("wal_level = replica\n " )
231230
232- self .set_replication_conf ()
231+ self .set_replication_conf ()
233232
234233 return self
235234
You can’t perform that action at this time.
0 commit comments