WeTransfer / Diagnostics

Allow users to easily share Diagnostics with your support team to improve the flow of fixing bugs.
MIT License
933 stars 53 forks source link

Forward the output of the DiagnosticsLogger to not disable default logging #35

Closed AvdLee closed 4 years ago

AvdLee commented 4 years ago

It turned out that the Pipe we were using to capture any STDOUT_FILENO output was also capturing xcodebuild output. This caused our Fastlane setup to fail. We had to forward the output to an outpipe to make sure original logs show up again.

This is to make sure that the logs are showing up in the Xcode console while debugging but as well for runs in the terminal when testing.

More info in this blog post: https://medium.com/@thesaadismail/eavesdropping-on-swifts-print-statements-57f0215efb42

ghost commented 4 years ago
1 Message
:book: Tests: Executed 17 tests, with 0 failures (0 unexpected) in 0.409 (0.538) seconds

Current coverage for Diagnostics.framework is 76.82%

Files changed - -
DiagnosticsLogger.swift 56.44% :warning:

Powered by xcov

Generated by :no_entry_sign: Danger