Skip to content

Commit 904fee9

Browse files
committed
change up log key and status_code logic
1 parent be48079 commit 904fee9

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

QiniuSDK/Collect/QNReportItem.m

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,7 @@ - (void)reportItem:(QNReportItem *)item token:(NSString *)token{
8383
@implementation QNResponseInfo(Report)
8484

8585
- (NSNumber *)requestReportStatusCode{
86-
if (self.statusCode > -10 && self.statusCode < 0) {
87-
return @(self.statusCode);
88-
} else {
89-
return nil;
90-
}
86+
return @(self.statusCode);
9187
}
9288

9389
- (NSString *)requestReportErrorType{
@@ -172,7 +168,7 @@ - (NSString *)qualityResult{
172168
NSString * const QNReportRequestKeyPort = @"port";
173169
NSString * const QNReportRequestKeyTargetBucket = @"target_bucket";
174170
NSString * const QNReportRequestKeyTargetKey = @"target_key";
175-
NSString * const QNReportRequestKeyTotalElapsedTime = @"total_elaspsed_time";
171+
NSString * const QNReportRequestKeyTotalElapsedTime = @"total_elapsed_time";
176172
NSString * const QNReportRequestKeyDnsElapsedTime = @"dns_elapsed_time";
177173
NSString * const QNReportRequestKeyConnectElapsedTime = @"connect_elapsed_time";
178174
NSString * const QNReportRequestKeyTLSConnectElapsedTime = @"tls_connect_elapsed_time";
@@ -205,7 +201,7 @@ - (NSString *)qualityResult{
205201
NSString *const QNReportBlockKeyUpTime = @"up_time";
206202
NSString * const QNReportBlockKeyTargetRegionId = @"target_region_id";
207203
NSString * const QNReportBlockKeyCurrentRegionId = @"current_region_id";
208-
NSString * const QNReportBlockKeyTotalElapsedTime = @"total_elaspsed_time";
204+
NSString * const QNReportBlockKeyTotalElapsedTime = @"total_elapsed_time";
209205
NSString * const QNReportBlockKeyBytesSent = @"bytes_sent";
210206
NSString * const QNReportBlockKeyRecoveredFrom = @"recovered_from";
211207
NSString * const QNReportBlockKeyFileSize = @"file_size";
@@ -219,7 +215,7 @@ - (NSString *)qualityResult{
219215
NSString * const QNReportQualityKeyLogType = @"log_type";
220216
NSString *const QNReportQualityKeyUpTime = @"up_time";
221217
NSString * const QNReportQualityKeyResult = @"result";
222-
NSString * const QNReportQualityKeyTotalElapsedTime = @"total_elaspsed_time";
218+
NSString * const QNReportQualityKeyTotalElapsedTime = @"total_elapsed_time";
223219
NSString * const QNReportQualityKeyRequestsCount = @"requests_count";
224220
NSString * const QNReportQualityKeyRegionsCount = @"regions_count";
225221
NSString * const QNReportQualityKeyBytesSent = @"bytes_sent";

0 commit comments

Comments
 (0)