mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 12:19:20 +00:00
This reverts commit 5d3f960b67.
Based on comments in https://github.com/microsoft/vscode/pull/179405#issuecomment-1506843399
This commit is contained in:
@@ -45,6 +45,6 @@ export default class Tracer extends Disposable {
|
||||
}
|
||||
|
||||
public trace(serverId: string, message: string, data?: unknown): void {
|
||||
this.logger.trace(`<${serverId}> ${message}`, data);
|
||||
this.logger.trace(`<${serverId}> ${message}`, ...(data ? [JSON.stringify(data, null, 4)] : []));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -79,7 +79,7 @@ function format(args: any, verbose: boolean = false): string {
|
||||
|
||||
if (typeof a === 'object') {
|
||||
try {
|
||||
a = JSON.stringify(a, null, 2);
|
||||
a = JSON.stringify(a);
|
||||
} catch (e) { }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user