Skip to content

Commit

Permalink
Don't log passwords
Browse files Browse the repository at this point in the history
  • Loading branch information
fred-o committed Apr 25, 2024
1 parent 74eada6 commit c29cda5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/amqp-client.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ module.exports = class AmqpClient extends EventEmitter

connect: =>
[ uri, opts ] = @compat.connection(@conf)
log.info "connecting to:", uri
url = new URL(uri)
url.password = url.password.replace(/./g, '*')
log.info "connecting to:", url.toString()

amqp.connect(uri, opts).then (@conn) =>
log.info "connected"
Expand Down

0 comments on commit c29cda5

Please sign in to comment.