This is an automated email from the ASF dual-hosted git repository.

lidavidm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-adbc.git


The following commit(s) were added to refs/heads/main by this push:
     new 6df738789 fix(go/adbc/driver/snowflake): try to suppress stray logs 
(#2608)
6df738789 is described below

commit 6df738789aa778b6cd74c759a4a681cbe5e01683
Author: David Li <[email protected]>
AuthorDate: Tue Apr 8 08:39:27 2025 +0900

    fix(go/adbc/driver/snowflake): try to suppress stray logs (#2608)
    
    It turns out gosnowflake also exposes a log level control; set this to
    "warn".
    
    I also filed https://github.com/snowflakedb/gosnowflake/pull/1332. We
    need the fix to be upstream since ultimately the log message is
    triggered by constructing a global, so we're powerless to suppress it.
    It was ultimately fixed by
    https://github.com/snowflakedb/gosnowflake/pull/1327.
---
 go/adbc/driver/snowflake/driver.go | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/go/adbc/driver/snowflake/driver.go 
b/go/adbc/driver/snowflake/driver.go
index c2d7e8dba..7dbe01232 100644
--- a/go/adbc/driver/snowflake/driver.go
+++ b/go/adbc/driver/snowflake/driver.go
@@ -131,6 +131,10 @@ func init() {
                        }
                }
        }
+
+       // Disable some stray logs
+       // https://github.com/snowflakedb/gosnowflake/pull/1332
+       _ = gosnowflake.GetLogger().SetLogLevel("warn")
 }
 
 func errToAdbcErr(code adbc.Status, err error) error {

Reply via email to