From 427ddb1bb9f9b9c1488a0efb4403e86e0f8dc434 Mon Sep 17 00:00:00 2001 From: Roger Ng Date: Mon, 9 Dec 2024 16:52:50 +0000 Subject: [PATCH] Remove AWS `dsn` from error log to avoid password leak --- storage/aws/aws.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/aws/aws.go b/storage/aws/aws.go index 624c6443..4a9a95fc 100644 --- a/storage/aws/aws.go +++ b/storage/aws/aws.go @@ -505,7 +505,7 @@ type mySQLSequencer struct { func newMySQLSequencer(ctx context.Context, dsn string, maxOutstanding uint64, maxOpenConns, maxIdleConns int) (*mySQLSequencer, error) { dbPool, err := sql.Open("mysql", dsn) if err != nil { - return nil, fmt.Errorf("failed to connect to MySQL db): %v", err) + return nil, fmt.Errorf("failed to connect to MySQL db: %v", err) } if maxOpenConns > 0 {