Use provider description in issue report

This commit is contained in:
Davide De Rosa 2019-12-12 00:46:19 +01:00
parent 3165461b8d
commit 5c918c3a86

View File

@ -76,9 +76,9 @@ class IssueReporter: NSObject {
let bodyContent = AppConstants.IssueReporter.Email.template
var bodyMetadata = "--\n\n"
bodyMetadata += DebugLog(raw: "").decoratedString()
if let infrastructure = issue.infrastructure {
bodyMetadata += "Provider: \(infrastructure.name)\n"
if let lastUpdated = InfrastructureFactory.shared.modificationDate(forName: infrastructure.name) {
if let metadata = issue.infrastructure.metadata {
bodyMetadata += "Provider: \(metadata.description)\n"
if let lastUpdated = InfrastructureFactory.shared.modificationDate(forName: metadata.name) {
bodyMetadata += "Last updated: \(lastUpdated)\n"
}
bodyMetadata += "\n"