Skip to content

Commit

Permalink
hide the password on reconnectClient (#348)
Browse files Browse the repository at this point in the history
  • Loading branch information
hiimjako authored Aug 19, 2024
1 parent 3b697d8 commit 4670503
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/stream/environment.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ func (env *Environment) newReconnectClient() (*Client, error) {
for err != nil {
sleepTime := rand.Intn(5000) + (tentatives * 1000)

logs.LogError("Can't connect the locator client, error:%s, retry in %d milliseconds, broker: ", err, sleepTime,
client.broker)
brokerUri := fmt.Sprintf("%s://%s:***@%s:%s/%s", client.broker.Scheme, client.broker.User, client.broker.Host, client.broker.Port, client.broker.Vhost)
logs.LogError("Can't connect the locator client, error:%s, retry in %d milliseconds, broker: ", err, sleepTime, brokerUri)

time.Sleep(time.Duration(sleepTime) * time.Millisecond)
rand.Seed(time.Now().UnixNano())
Expand Down

0 comments on commit 4670503

Please sign in to comment.