File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -281,7 +281,12 @@ actor LogHandlerActor {
281
281
282
282
/// The handler that is called to log a message from `NonDarwinLogger` unless `overrideLogHandler` is set on the logger.
283
283
@LogHandlerActor
284
- var logHandler : @Sendable ( String) async -> Void = { fputs ( $0 + " \n " , stderr) }
284
+ var logHandler : @Sendable ( String) async -> Void = { message in
285
+ // Print to stdout. When using the sourcekit-lsp binary, we will have stdout redirected to stderr, so it ends up
286
+ // logging to stderr. During test execution, we log to stdout, which is generally better handled than logging to
287
+ // stderr by XCTest (for some reason logging to stderr will hang test execution when running tests in parallel).
288
+ print ( message + " \n " )
289
+ }
285
290
286
291
/// The queue on which we log messages.
287
292
///
You can’t perform that action at this time.
0 commit comments