Skip to content

Commit a64c67e

Browse files
committed
suppress trace logging by default, put behind a setting
1 parent 9e13f59 commit a64c67e

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

‎src/lsp.ts‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,11 @@ async function initialize(
234234
typeStubSearchPaths: ['/usr/local/python-language-server/Typeshed'],
235235
excludeFiles: [],
236236
analysisUpdates: true,
237-
traceLogging: true,
237+
traceLogging: Boolean(
238+
sourcegraph.configuration
239+
.get<Settings>()
240+
.get('python.traceLogging') || false
241+
),
238242
asyncStartup: true,
239243
},
240244
} as InitializeParams)

‎src/settings.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ interface Settings {
22
['python.languageServer.url']?: string
33
['python.accessToken']?: string
44
['python.sourcegraph.url']?: string
5+
['python.traceLogging']?: boolean
56
}

0 commit comments

Comments
 (0)