2
0

Fixed issue with logs in feedback message.

[FIXED]     Including logs in the feedback message caused failure to
            parse attachments.
This commit is contained in:
Maarten Billemont 2012-09-20 21:37:58 +02:00
parent 6f2bc83806
commit 52b8033c37

View File

@ -520,13 +520,13 @@
[PearlInfoPlist get].CFBundleShortVersionString, [PearlInfoPlist get].CFBundleShortVersionString,
[PearlInfoPlist get].CFBundleVersion) [PearlInfoPlist get].CFBundleVersion)
attachments:logs attachments:(logs
? [[PearlEMailAttachment alloc] initWithContent:[[[PearlLogger get] formatMessagesWithLevel:logLevel] dataUsingEncoding:NSUTF8StringEncoding] ? [[PearlEMailAttachment alloc] initWithContent:[[[PearlLogger get] formatMessagesWithLevel:logLevel] dataUsingEncoding:NSUTF8StringEncoding]
mimeType:@"text/plain" mimeType:@"text/plain"
fileName:PearlString(@"%@-%@.log", fileName:PearlString(@"%@-%@.log",
[[NSDateFormatter rfc3339DateFormatter] stringFromDate:[NSDate date]], [[NSDateFormatter rfc3339DateFormatter] stringFromDate:[NSDate date]],
[PearlKeyChain deviceIdentifier])] [PearlKeyChain deviceIdentifier])]
: nil, nil] : nil), nil]
showComposerForVC:viewController]; showComposerForVC:viewController];
} }