Skip to content

Commit

Permalink
Release 1.4.9
Browse files Browse the repository at this point in the history
1. 修复 Debug 模式下的问题
  • Loading branch information
Yuhan ZOU committed Jun 13, 2016
1 parent 4be93b2 commit 97e2dea
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion SensorsAnalyticsSDK/SensorsAnalyticsSDK.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "SensorsAnalyticsSDK"
s.version = "1.4.8"
s.version = "1.4.9"
s.summary = "The offical iOS SDK of Sensors Analytics."
s.homepage = "http://www.sensorsdata.cn"
s.source = { :git => 'https://github.com/sensorsdata/sa-sdk-ios.git', :tag => "v#{s.version}" }
Expand Down
18 changes: 10 additions & 8 deletions SensorsAnalyticsSDK/SensorsAnalyticsSDK/SensorsAnalyticsSDK.m
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#import "SASwizzler.h"
#import "SensorsAnalyticsSDK.h"

#define VERSION @"1.4.8"
#define VERSION @"1.4.9"

#define PROPERTY_LENGTH_LIMITATION 255

Expand Down Expand Up @@ -321,14 +321,16 @@ - (void)flush {
NSString *urlResponseContent = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
NSString *errMsg = [NSString stringWithFormat:@"%@ flush failure with response '%@'.", self, urlResponseContent];
if (_debugMode != SensorsAnalyticsDebugOff) {
SALog(@"==========================================================================");
SALog(@"%@ invalid message: %@", self, jsonString);
SALog(@"%@ ret_code: %ld", self, [urlResponse statusCode]);
SALog(@"%@ ret_content: %@", self, urlResponseContent);
SAError(@"==========================================================================");
SAError(@"%@ invalid message: %@", self, jsonString);
SAError(@"%@ ret_code: %ld", self, [urlResponse statusCode]);
SAError(@"%@ ret_content: %@", self, urlResponseContent);

@throw [SensorsAnalyticsDebugException exceptionWithName:@"IllegalDataException"
reason:errMsg
userInfo:nil];
if ([urlResponse statusCode] >= 300) {
@throw [SensorsAnalyticsDebugException exceptionWithName:@"IllegalDataException"
reason:errMsg
userInfo:nil];
}
} else {
SAError(@"%@", errMsg);
flushSucc = NO;
Expand Down

0 comments on commit 97e2dea

Please sign in to comment.