File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,16 @@ node.stop()
8585
8686It is essential to clean everything up, so make sure to call ` node.cleanup() ` once you've finished all of your tests.
8787
88+ Nodes support python logging system, so if you have configured logging
89+ in your tests you can use it to redirect postgres logs to yours.
90+ To do that just use ` use_logging ` argument like here:
91+
92+ ``` python
93+ node = testgres.get_new_node(' master' , use_logging = True )
94+ ```
95+
96+ Also you can find working configuration sample for logging in tests.
97+
8898Please see ` testgres/tests ` directory for replication configuration example.
8999> Note: you could take a look at [ ` pg_pathman ` ] ( https://github.com/postgrespro/pg_pathman ) to get an idea of ` testgres ` ' capabilities.
90100
You can’t perform that action at this time.
0 commit comments