Skip to content

Commit b34ed66

Browse files
authored
Merge pull request #1522 from ahoppen/6.0/log-toolchain-path
Log path of the toolchain used to opening a document
2 parents 08f52ee + 63b0107 commit b34ed66

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)