Skip to content

Commit

Permalink
Remove AWS dsn from error log to avoid password leak
Browse files Browse the repository at this point in the history
  • Loading branch information
roger2hk committed Dec 9, 2024
1 parent 43c00cb commit 427ddb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage/aws/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 427ddb1

Please sign in to comment.