Is there any way to capture sync_reasoner() output to txt?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Is there any way to capture sync_reasoner() output to txt?

Tania
Reply | Threaded
Open this post in threaded view
|

Re: Is there any way to capture sync_reasoner() output to txt?

Jiba
Administrator
Hello,

If you call sync_reasoner() with "debug = 9", it will print the output on Standard Error. So you can redirect sys.stderr  (probably with sys.stderr = io.StringIO()), and then analyze the results.

Jiba
Reply | Threaded
Open this post in threaded view
|

Re: Is there any way to capture sync_reasoner() output to txt?

Tania
Thank you, works perfectly!