Skip to content

Commit 22b7804

Browse files
committed
add ver to info
1 parent 1adccd0 commit 22b7804

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

library/src/main/java/com/qiniu/android/http/ResponseInfo.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
package com.qiniu.android.http;
22

33

4+
import com.qiniu.android.common.Constants;
5+
46
import java.util.Locale;
57

68
/**
@@ -146,7 +148,7 @@ public boolean isNotQiniu() {
146148
}
147149

148150
public String toString() {
149-
return String.format(Locale.ENGLISH, "{ResponseInfo:%s,status:%d, reqId:%s, xlog:%s, xvia:%s, host:%s, path:%s, ip:%s, port:%d, duration:%f s, time:%d, sent:%d,error:%s}",
150-
id, statusCode, reqId, xlog, xvia, host, path, ip, port, duration, timeStamp, sent, error);
151+
return String.format(Locale.ENGLISH, "{ver:%s,ResponseInfo:%s,status:%d, reqId:%s, xlog:%s, xvia:%s, host:%s, path:%s, ip:%s, port:%d, duration:%f s, time:%d, sent:%d,error:%s}",
152+
Constants.VERSION, id, statusCode, reqId, xlog, xvia, host, path, ip, port, duration, timeStamp, sent, error);
151153
}
152154
}

0 commit comments

Comments
 (0)