Skip to content

Commit 8c8cbd6

Browse files
committed
nit
1 parent c504981 commit 8c8cbd6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

dbos/system_database.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -291,9 +291,8 @@ func newSystemDatabase(ctx context.Context, inputs newSystemDatabaseInput) (syst
291291
maskedDatabaseURL, err := maskPassword(pool.Config().ConnString())
292292
if err != nil {
293293
logger.Warn("Failed to parse database URL", "error", err)
294-
} else {
295-
logger.Info("Masked Database URL", "url", maskedDatabaseURL)
296294
}
295+
logger.Info("Connecting to system database", "database_url", maskedDatabaseURL, "schema", databaseSchema)
297296

298297
if customPool == nil {
299298
// Create the database if it doesn't exist
@@ -2530,7 +2529,7 @@ func maskPassword(dbURL string) (string, error) {
25302529
_, hasPassword := parsedURL.User.Password()
25312530
if hasPassword {
25322531
// Manually construct the URL with masked password to avoid encoding
2533-
maskedURL := parsedURL.Scheme + "://" + username + ":********@" + parsedURL.Host + parsedURL.Path
2532+
maskedURL := parsedURL.Scheme + "://" + username + ":***@" + parsedURL.Host + parsedURL.Path
25342533
if parsedURL.RawQuery != "" {
25352534
maskedURL += "?" + parsedURL.RawQuery
25362535
}

0 commit comments

Comments
 (0)