Skip to content

Commit

Permalink
* removed Info level log message from Region containing us-west-2
Browse files Browse the repository at this point in the history
* removed wrong test
  • Loading branch information
sfc-gh-dszmolka committed Dec 16, 2024
1 parent f4dd887 commit ccdde6f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion dsn.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ func (c *Config) ocspMode() string {
func DSN(cfg *Config) (dsn string, err error) {
if strings.ToLower(cfg.Region) == "us-west-2" {
cfg.Region = ""
logger.Info("Ignoring Region configuration in DSN as us-west-2 is the default one.")
}
// in case account includes region
region, posDot := extractRegionFromAccount(cfg.Account)
Expand Down
9 changes: 0 additions & 9 deletions dsn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1249,15 +1249,6 @@ func TestDSN(t *testing.T) {
},
dsn: "u:p@account_us-west-2.snowflakecomputing.com:443?ocspFailOpen=true&validateDefaultParameters=true",
},
{
cfg: &Config{
User: "u",
Password: "p",
Account: "account",
Host: "account.us-west-2.snowflakecomputing.com",
},
dsn: "u:[email protected]:443?ocspFailOpen=true&validateDefaultParameters=true",
},
{
cfg: &Config{
User: "u",
Expand Down

0 comments on commit ccdde6f

Please sign in to comment.