Skip to content

Commit 456ac06

Browse files
authored
Remove winston logger dependency (#17919)
* Initial logging update * Update logging decorators * Update logging * Fix dependency cycle * Remove winston dependency * Ensure we initialize file logging before anything * Add news item
1 parent 9a1f6ee commit 456ac06

File tree

135 files changed

+557
-1184
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

135 files changed

+557
-1184
lines changed

news/3 Code Health/17921.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Remove dependency on `winston` logger.

package-lock.json

Lines changed: 11 additions & 186 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1950,7 +1950,6 @@
19501950
"vscode-languageserver-protocol": "3.16.0",
19511951
"vscode-tas-client": "^0.1.22",
19521952
"winreg": "^1.2.4",
1953-
"winston": "^3.2.1",
19541953
"xml2js": "^0.4.19"
19551954
},
19561955
"devDependencies": {

src/client/activation/activationManager.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ import { IApplicationDiagnostics } from '../application/types';
99
import { IActiveResourceService, IDocumentManager, IWorkspaceService } from '../common/application/types';
1010
import { PYTHON_LANGUAGE } from '../common/constants';
1111
import { DeprecatePythonPath } from '../common/experiments/groups';
12-
import { traceDecorators } from '../common/logger';
1312
import { IFileSystem } from '../common/platform/types';
1413
import { IDisposable, IExperimentService, IInterpreterPathService, Resource } from '../common/types';
1514
import { Deferred } from '../common/utils/async';
1615
import { IInterpreterAutoSelectionService } from '../interpreter/autoSelection/types';
16+
import { traceDecoratorError } from '../logging';
1717
import { sendActivationTelemetry } from '../telemetry/envFileTelemetry';
1818
import { IExtensionActivationManager, IExtensionActivationService, IExtensionSingleActivationService } from './types';
1919

@@ -62,7 +62,7 @@ export class ExtensionActivationManager implements IExtensionActivationManager {
6262
]);
6363
}
6464

65-
@traceDecorators.error('Failed to activate a workspace')
65+
@traceDecoratorError('Failed to activate a workspace')
6666
public async activateWorkspace(resource: Resource): Promise<void> {
6767
const key = this.getWorkspaceKey(resource);
6868
if (this.activatedWorkspaces.has(key)) {

0 commit comments

Comments
 (0)