Skip to content

Commit 33c9c9c

Browse files
committed
detail info
1 parent 05b4c2a commit 33c9c9c

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#Changelog
22

3+
## 7.0.11.1 (2015-06-23)
4+
5+
### 增加
6+
* response info 增加 user id, timestamp
7+
38
## 7.0.11 (2015-06-07)
49

510
### 增加

Qiniu.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'Qiniu'
3-
s.version = '7.0.11'
3+
s.version = '7.0.11.1'
44
s.summary = 'Qiniu Resource Storage SDK for iOS and Mac'
55
s.homepage = 'https://github.com/qiniu/objc-sdk'
66
s.social_media_url = 'http://weibo.com/qiniutek'

QiniuSDK/Http/QNResponseInfo.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ - (instancetype)initWithStatus:(int)status
113113
_error = error;
114114
_host = host;
115115
_duration = duration;
116+
_id = [QNUserAgent sharedInstance].id;
117+
_timeStamp = [[NSDate date] timeIntervalSince1970];
116118
}
117119
return self;
118120
}
@@ -168,7 +170,7 @@ - (instancetype)init:(int)status
168170
}
169171

170172
- (NSString *)description {
171-
return [NSString stringWithFormat:@"<%@: id%@, status: %d, requestId: %@, xlog: %@, xvia: %@, host: %@ ip: %@ duration:%f s time:%llu error: %@>", NSStringFromClass([self class]), _id, _statusCode, _reqId, _xlog, _xvia, _host, _serverIp, _duration, _timeStamp, _error];
173+
return [NSString stringWithFormat:@"<%@= id: %@, status: %d, requestId: %@, xlog: %@, xvia: %@, host: %@ ip: %@ duration: %f s time: %llu error: %@>", NSStringFromClass([self class]), _id, _statusCode, _reqId, _xlog, _xvia, _host, _serverIp, _duration, _timeStamp, _error];
172174
}
173175

174176
- (BOOL)isCancelled {

0 commit comments

Comments
 (0)