You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Swift 5.6.1 (Xcode 13.4.1), when running the test suite from the command line, the PostgresClientKit log output is not properly interleaved with the XCTest output. Instead, the log output appears after all XCTest output. This makes it difficult to correlate the log output to specific tests.
I'm not seeing this when running the test suite within Xcode or on Linux.
By default, LogHandler emits log output to stdout using print(...). It appears that print(...) is now buffering output, which is why the log output is not immediately visible.
Replacing print(...) with FileHandle.standardOutput.write(:_) seems to do the trick.
The text was updated successfully, but these errors were encountered:
In Swift 5.6.1 (Xcode 13.4.1), when running the test suite from the command line, the PostgresClientKit log output is not properly interleaved with the XCTest output. Instead, the log output appears after all XCTest output. This makes it difficult to correlate the log output to specific tests.
I'm not seeing this when running the test suite within Xcode or on Linux.
By default,
LogHandler
emits log output to stdout usingprint(...)
. It appears thatprint(...)
is now buffering output, which is why the log output is not immediately visible.Replacing
print(...)
withFileHandle.standardOutput.write(:_)
seems to do the trick.The text was updated successfully, but these errors were encountered: