Skip to content

Commit f3153ba

Browse files
authored
Merge pull request #2140 from ahoppen/log-launch-path
Log the path that SourceKit-LSP was launched from
2 parents 3f1568c + 6e09a21 commit f3153ba

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/sourcekit-lsp/SourceKitLSP.swift

+2
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,8 @@ struct SourceKitLSP: AsyncParsableCommand {
237237
fatalError("failed to redirect stdout -> stderr: \(strerror(errno)!)")
238238
}
239239

240+
logger.log("sourcekit-lsp launched from \(ProcessInfo.processInfo.arguments.first ?? "<nil>")")
241+
240242
let globalConfigurationOptions = globalConfigurationOptions
241243
if let logLevelStr = globalConfigurationOptions.loggingOrDefault.level,
242244
let logLevel = NonDarwinLogLevel(logLevelStr)

0 commit comments

Comments
 (0)