From 652cd00b913dc5d61d08a4190b048709399097bc Mon Sep 17 00:00:00 2001 From: Alex Hoppen Date: Sat, 22 Jun 2024 06:20:04 -0700 Subject: [PATCH] Log path of the toolchain used to opening a document MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I don’t know why we logged the toolchain’s identifier twice. That didn’t make much sense. --- Sources/SourceKitLSP/SourceKitLSPServer.swift | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Sources/SourceKitLSP/SourceKitLSPServer.swift b/Sources/SourceKitLSP/SourceKitLSPServer.swift index 285b8ef05..e756f5317 100644 --- a/Sources/SourceKitLSP/SourceKitLSPServer.swift +++ b/Sources/SourceKitLSP/SourceKitLSPServer.swift @@ -524,7 +524,12 @@ public actor SourceKitLSPServer { return nil } - logger.log("Using toolchain \(toolchain.identifier) (\(toolchain.identifier)) for \(uri.forLogging)") + logger.log( + """ + Using toolchain at \(toolchain.path?.pathString ?? "") (\(toolchain.identifier, privacy: .public)) \ + for \(uri.forLogging) + """ + ) return workspace.documentService.withLock { documentService in if let concurrentlySetService = documentService[uri] {