Skip to content

Commit fbe0caa

Browse files
committed
Avoids logging query string on callback uri
1 parent 9030f89 commit fbe0caa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/plus/subscription/serverConnection.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,8 @@ export class ServerConnection implements Disposable {
166166
}
167167

168168
class UriEventHandler extends EventEmitter<Uri> implements UriHandler {
169-
@log()
169+
// Strip query strings from the Uri to avoid logging token, etc
170+
@log<UriEventHandler['handleUri']>({ args: { 0: u => u.with({ query: '' }).toString(false) } })
170171
public handleUri(uri: Uri) {
171172
this.fire(uri);
172173
}

0 commit comments

Comments
 (0)