HyukjinKwon opened a new issue, #4880:
URL: https://github.com/apache/arrow-adbc/issues/4880

   ### What happened?
   
   In the Go driver template, `case "warn":` has no body, and Go doesn't fall 
through, so `ADBC_DRIVER_<PREFIX>_LOG_LEVEL=warn` leaves the level at 
`slog.LevelError` 
([driver.go.tmpl#L203](https://github.com/apache/arrow-adbc/blob/ecd98b42118c21547f509a11cc037f2faa902430/go/adbc/pkg/_tmpl/driver.go.tmpl#L203)).
 `warn` is one of the values the logging help text suggests; `warning` works.
   
   Every driver generated from the template inherits this, including Flight SQL 
here and the drivers in adbc-drivers, for example 
[adbc-drivers/spark](https://github.com/adbc-drivers/spark/blob/1532d8043666f5d41f544bb25d3b915c2aebf80b/go/pkg/driver.go#L215).
   
   ### Stack Trace
   
   _No response_
   
   ### How can we reproduce the bug?
   
   Set `ADBC_DRIVER_FLIGHTSQL_LOG_LEVEL=warn` and load the Flight SQL driver: 
warnings aren't logged. With `ADBC_DRIVER_FLIGHTSQL_LOG_LEVEL=warning` they are.
   
   ### Environment/Setup
   
   Found by reading the source at ecd98b4 (main).
   


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