Skip to content

Commit

Permalink
:chore: log configuration via safeStringify
Browse files Browse the repository at this point in the history
  • Loading branch information
bpasero committed Jul 7, 2021
1 parent 74264ce commit 2336e76
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/vs/workbench/browser/web.main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ import { WorkspaceTrustManagementService } from 'vs/workbench/services/workspace
import { IWorkspaceTrustManagementService } from 'vs/platform/workspace/common/workspaceTrust';
import { HTMLFileSystemProvider } from 'vs/platform/files/browser/htmlFileSystemProvider';
import { IOpenerService } from 'vs/platform/opener/common/opener';
import { safeStringify } from 'vs/base/common/objects';

class BrowserMain extends Disposable {

Expand Down Expand Up @@ -100,7 +101,7 @@ class BrowserMain extends Disposable {
this._register(instantiationService.createInstance(BrowserWindow));

// Logging
services.logService.trace('workbench configuration', JSON.stringify(this.configuration));
services.logService.trace('workbench configuration', safeStringify(this.configuration));

// Return API Facade
return instantiationService.invokeFunction(accessor => {
Expand Down
3 changes: 2 additions & 1 deletion src/vs/workbench/electron-sandbox/shared.desktop.main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ import { NativeLogService } from 'vs/workbench/services/log/electron-sandbox/log
import { WorkspaceTrustManagementService } from 'vs/workbench/services/workspaces/common/workspaceTrust';
import { IWorkspaceTrustManagementService } from 'vs/platform/workspace/common/workspaceTrust';
import { registerWindowDriver } from 'vs/platform/driver/electron-sandbox/driver';
import { safeStringify } from 'vs/base/common/objects';

export abstract class SharedDesktopMain extends Disposable {

Expand Down Expand Up @@ -114,7 +115,7 @@ export abstract class SharedDesktopMain extends Disposable {
this._register(instantiationService.createInstance(NativeWindow));

// Logging
services.logService.trace('workbench configuration', JSON.stringify(this.configuration));
services.logService.trace('workbench configuration', safeStringify(this.configuration));

// Driver
if (this.configuration.driver) {
Expand Down

0 comments on commit 2336e76

Please sign in to comment.