Skip to content

Commit a91d27b

Browse files
authored
Merge pull request #107 from smartmobilefactory/raiseAppCenterLogsSize
Raise AppCenter uploaded logs size.
2 parents c4f20ff + 9767a74 commit a91d27b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

AppCenter/AppCenterSDK+HiDrive.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import SMFLogger
1818
fileprivate enum AppCenterConstants {
1919

2020
static let appSecretKey = "AppCenterAppSecret"
21-
static let smfLogUploadMaxSize : Int = 5000
21+
static let smfLogUploadMaxCharCount = 1_500_000 // With 1_500_000 chars we'll be at 1.5MB~
2222
static let crashLogFileName = "SMFLogger.log"
2323
}
2424

@@ -191,7 +191,7 @@ private class AppCenterSDKDelegate : NSObject, MSCrashesDelegate {
191191
private var applicationLog: String {
192192
guard
193193
(self.isLogUploadEnabled == true),
194-
let description = Logger.logFilesContent(maxSize: AppCenterConstants.smfLogUploadMaxSize),
194+
let description = Logger.logFilesContent(maxSize: AppCenterConstants.smfLogUploadMaxCharCount),
195195
(description.isEmpty == false) else {
196196
return "No Log found"
197197
}

0 commit comments

Comments
 (0)