diff --git a/assets/js/phoenix/socket.js b/assets/js/phoenix/socket.js index 48de25649d..32e4b030db 100644 --- a/assets/js/phoenix/socket.js +++ b/assets/js/phoenix/socket.js @@ -325,7 +325,11 @@ export default class Socket { } onConnOpen(){ - if(this.hasLogger()) this.log("transport", `connected to ${this.endPointURL()}`) + if(this.hasLogger()) { + const endPointURL = this.endPointURL() + const prunedURL = endPointURL.replace(/access_token=([^&#/]+)/, 'access_token=-pruned-') + this.log("transport", `connected to ${prunedURL}`) + } this.closeWasClean = false this.establishedConnections++ this.flushSendBuffer()