Skip to content

Commit 652cd00

Browse files
committed
Log path of the toolchain used to opening a document
I don’t know why we logged the toolchain’s identifier twice. That didn’t make much sense.
1 parent b8d4c62 commit 652cd00

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Sources/SourceKitLSP/SourceKitLSPServer.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,12 @@ public actor SourceKitLSPServer {
524524
return nil
525525
}
526526

527-
logger.log("Using toolchain \(toolchain.identifier) (\(toolchain.identifier)) for \(uri.forLogging)")
527+
logger.log(
528+
"""
529+
Using toolchain at \(toolchain.path?.pathString ?? "<nil>") (\(toolchain.identifier, privacy: .public)) \
530+
for \(uri.forLogging)
531+
"""
532+
)
528533

529534
return workspace.documentService.withLock { documentService in
530535
if let concurrentlySetService = documentService[uri] {

0 commit comments

Comments
 (0)