alinaliBQ opened a new issue, #47670:
URL: https://github.com/apache/arrow/issues/47670

   ### Describe the enhancement requested
   
   Currently, `StartArrowLog` will be called multiple times in ODBC tests, and 
this can potentially be a problem because `StartArrowLog` is meant to be called 
once in a program. There is no current solution as Arrow's logging framework 
doesn't have an API to indicate if the logging framework is enabled or not. And 
`StartArrowLog` is called at `SQLAllocEnv` when the environment handle is 
allocated, not at connection level, so there is no way for user to indicate 
whether or not the driver is being tested. 
   
   While we don't have a permanent solution for this, here are some workarounds:
   
   1. Do not enable logging when tests are run. I.e., remove the logging 
environment variable
   2. Optional: Add a way for user to pass logging level in test program.
   
   Note: the current approach only impacts tests. BI tools generally keep one 
connection alive, so it should not encounter those issue. 
   
   ### Component(s)
   
   C++, FlightRPC


-- 
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]

Reply via email to