Skip to content

Commit b56c7cb

Browse files
committed
Merge branch 'master' of github.com:postgrespro/testgres
2 parents 7bc6f0d + ff73600 commit b56c7cb

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

testgres/testgres.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,15 @@ def start(self, params={}):
447447
else:
448448
print("Log file not found: %s", log_filename)
449449

450+
conf_filename = os.path.join(self.data_dir, 'postgresql.conf')
451+
if os.path.exists(conf_filename):
452+
print("\npostgresql.conf:\n----")
453+
with open(conf_filename, 'r') as conffile:
454+
text = conffile.readlines()[-1]
455+
print(text)
456+
else:
457+
print("Configuration file not found: %s", conf_filename)
458+
450459
raise ClusterException("Couldn't start the new node")
451460

452461
self.working = True

0 commit comments

Comments
 (0)