aboutsummaryrefslogtreecommitdiff
path: root/weed/filer/postgres/postgres_store.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2024-03-25 12:50:43 -0700
committerchrislu <chris.lu@gmail.com>2024-03-25 12:50:43 -0700
commit36fec34c472266fe2a8f087af7de3945dc198726 (patch)
treed40fb17fb193e6bc1f11c9985395e41bfe7551e6 /weed/filer/postgres/postgres_store.go
parent8b3756b815f86c1ef465631a8b20223c4abe7156 (diff)
downloadseaweedfs-36fec34c472266fe2a8f087af7de3945dc198726.tar.xz
seaweedfs-36fec34c472266fe2a8f087af7de3945dc198726.zip
print only adapted url
fix https://github.com/seaweedfs/seaweedfs/issues/5424
Diffstat (limited to 'weed/filer/postgres/postgres_store.go')
-rw-r--r--weed/filer/postgres/postgres_store.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/filer/postgres/postgres_store.go b/weed/filer/postgres/postgres_store.go
index cacdbd864..0c02f0726 100644
--- a/weed/filer/postgres/postgres_store.go
+++ b/weed/filer/postgres/postgres_store.go
@@ -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