print only adapted url

fix https://github.com/seaweedfs/seaweedfs/issues/5424
This commit is contained in:
chrislu
2024-03-25 12:50:43 -07:00
parent 8b3756b815
commit 36fec34c47
3 changed files with 3 additions and 3 deletions

View File

@@ -92,7 +92,7 @@ func (store *PostgresStore) initialize(upsertQuery string, enableUpsert bool, us
store.DB.SetConnMaxLifetime(time.Duration(maxLifetimeSeconds) * time.Second)
if err = store.DB.Ping(); err != nil {
return fmt.Errorf("connect to %s error:%v", sqlUrl, err)
return fmt.Errorf("connect to %s error:%v", adaptedSqlUrl, err)
}
return nil