diff --git a/Changelog.md b/Changelog.md index 34c883b..af033da 100644 --- a/Changelog.md +++ b/Changelog.md @@ -3,7 +3,6 @@ - Merge release 1.4.0 into master ([#53](https://github.com/WeTransfer/Diagnostics/pull/53)) ### 1.4.0 - - Migrate to Bitrise & Danger-Swift ([#52](https://github.com/WeTransfer/Diagnostics/pull/52)) via @AvdLee - Add charset utf-8 to html head ([#50](https://github.com/WeTransfer/Diagnostics/pull/50)) via @AvdLee diff --git a/Sources/Reporters/LogsReporter.swift b/Sources/Reporters/LogsReporter.swift index dab3d3b..2d35338 100644 --- a/Sources/Reporters/LogsReporter.swift +++ b/Sources/Reporters/LogsReporter.swift @@ -12,6 +12,7 @@ import Foundation struct LogsReporter: DiagnosticsReporting { static var title: String = "Logs" + static var diagnostics: String { guard let data = DiagnosticsLogger.standard.readLog(), let logs = String(data: data, encoding: .utf8) else { return "Parsing the log failed" @@ -22,7 +23,7 @@ struct LogsReporter: DiagnosticsReporting { } static func report() -> DiagnosticsChapter { - return DiagnosticsChapter(title: "Logs", diagnostics: diagnostics, formatter: self) + return DiagnosticsChapter(title: title, diagnostics: diagnostics, formatter: self) } }