Skip to content

Commit 8bd6372

Browse files
authored
Correct pty host logging function name
1 parent 23b487b commit 8bd6372

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vs/platform/terminal/node/ptyService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,14 @@ export function traceRpc(_target: any, key: string, descriptor: any) {
5151

5252
descriptor[fnKey!] = async function (...args: any[]) {
5353
if (this.traceRpcArgs.logService.getLevel() === LogLevel.Trace) {
54-
this.traceRpcArgs.logService.trace(`[RPC Request] PtyService#${fnKey}(${args.map(e => JSON.stringify(e)).join(', ')})`);
54+
this.traceRpcArgs.logService.trace(`[RPC Request] PtyService#${fn!.name}(${args.map(e => JSON.stringify(e)).join(', ')})`);
5555
}
5656
if (this.traceRpcArgs.simulatedLatency) {
5757
await timeout(this.traceRpcArgs.simulatedLatency);
5858
}
5959
const result = await fn!.apply(this, args);
6060
if (this.traceRpcArgs.logService.getLevel() === LogLevel.Trace) {
61-
this.traceRpcArgs.logService.trace(`[RPC Response] PtyService#${fnKey}`, result);
61+
this.traceRpcArgs.logService.trace(`[RPC Response] PtyService#${fn!.name}`, result);
6262
}
6363
return result;
6464
};

0 commit comments

Comments
 (0)