GautamGottipati commented on PR #3307:
URL: https://github.com/apache/cassandra/pull/3307#issuecomment-2117811365

   Hi @bschoening,
   
   Here are some of the observations:
   Initially when there is no Capture.
   shunted_query_out is `None`
   query_out is `<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>` 
which is stdout.
   
   When we start Capturing (example `Capture 'demo_capture.txt'`):
   shunted_query_out is `<_io.TextIOWrapper name='<stdout>' mode='w' 
encoding='utf-8'>` which is stdout
   query_out is `<_io.TextIOWrapper name='demo_capture.txt' mode='a' 
encoding='UTF-8'>` which is the file demo_capture.txt.
   
   According to the observations 
   We are not able to get the file information from shunted_query_out. I feel 
we need to send query_out to shell.writeresults() .
   In Tracing.py the  shell.print_formatted_result should 
be`shell.print_formatted_result(formatted_names, formatted_values, 
with_header=True, tty=shell.tty, out=shell.shunted_query_out)` in case `out` is 
None then output should be `query_out`.
   
   Still figuring it out. Open for suggestions.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to