Skip to content

Commit 6b042a3

Browse files
author
wicked_tc130
committed
update version to 1.2.6.
1 parent 9510200 commit 6b042a3

File tree

5 files changed

+30
-30
lines changed

5 files changed

+30
-30
lines changed

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<groupId>cn.jpush.api</groupId>
55
<artifactId>jiguang-common</artifactId>
6-
<version>1.2.5</version>
6+
<version>1.2.6</version>
77
<packaging>jar</packaging>
88
<url>https://github.com/jpush/jiguang-java-client-common</url>
99
<name>Jiguang Client Common Dependencies</name>

src/main/java/cn/jiguang/common/connection/ApacheHttpClient.java

+7-7
Original file line numberDiff line numberDiff line change
@@ -463,32 +463,32 @@ public void processResponse(CloseableHttpResponse response, ResponseWrapper wrap
463463
wrapper.setErrorObject();
464464
break;
465465
case 401:
466-
LOG.error("Authentication failed! Please check authentication params according to docs.");
466+
LOG.warn("Authentication failed! Please check authentication params according to docs.");
467467
wrapper.setErrorObject();
468468
break;
469469
case 403:
470-
LOG.error("Request is forbidden! Maybe your appkey is listed in blacklist or your params is invalid.");
470+
LOG.warn("Request is forbidden! Maybe your appkey is listed in blacklist or your params is invalid.");
471471
wrapper.setErrorObject();
472472
break;
473473
case 404:
474-
LOG.error("Request page is not found! Maybe your params is invalid.");
474+
LOG.warn("Request page is not found! Maybe your params is invalid.");
475475
wrapper.setErrorObject();
476476
break;
477477
case 410:
478-
LOG.error("Request resource is no longer in service. Please according to notice on official website.");
478+
LOG.warn("Request resource is no longer in service. Please according to notice on official website.");
479479
wrapper.setErrorObject();
480480
case 429:
481-
LOG.error("Too many requests! Please review your appkey's request quota.");
481+
LOG.warn("Too many requests! Please review your appkey's request quota.");
482482
wrapper.setErrorObject();
483483
break;
484484
case 500:
485485
case 502:
486486
case 503:
487487
case 504:
488-
LOG.error("Seems encountered server error. Maybe JPush is in maintenance? Please retry later.");
488+
LOG.warn("Seems encountered server error. Maybe JPush is in maintenance? Please retry later.");
489489
break;
490490
default:
491-
LOG.error("Unexpected response.");
491+
LOG.warn("Unexpected response.");
492492
}
493493

494494
throw new APIRequestException(wrapper);

src/main/java/cn/jiguang/common/connection/Http2Client.java

+7-7
Original file line numberDiff line numberDiff line change
@@ -129,32 +129,32 @@ public void handleResponse(ResponseWrapper wrapper, Request request) throws IOEx
129129
wrapper.setErrorObject();
130130
break;
131131
case 401:
132-
LOG.error("Authentication failed! Please check authentication params according to docs.");
132+
LOG.warn("Authentication failed! Please check authentication params according to docs.");
133133
wrapper.setErrorObject();
134134
break;
135135
case 403:
136-
LOG.error("Request is forbidden! Maybe your appkey is listed in blacklist or your params is invalid.");
136+
LOG.warn("Request is forbidden! Maybe your appkey is listed in blacklist or your params is invalid.");
137137
wrapper.setErrorObject();
138138
break;
139139
case 404:
140-
LOG.error("Request page is not found! Maybe your params is invalid.");
140+
LOG.warn("Request page is not found! Maybe your params is invalid.");
141141
wrapper.setErrorObject();
142142
break;
143143
case 410:
144-
LOG.error("Request resource is no longer in service. Please according to notice on official website.");
144+
LOG.warn("Request resource is no longer in service. Please according to notice on official website.");
145145
wrapper.setErrorObject();
146146
case 429:
147-
LOG.error("Too many requests! Please review your appkey's request quota.");
147+
LOG.warn("Too many requests! Please review your appkey's request quota.");
148148
wrapper.setErrorObject();
149149
break;
150150
case 500:
151151
case 502:
152152
case 503:
153153
case 504:
154-
LOG.error("Seems encountered server error. Maybe JPush is in maintenance? Please retry later.");
154+
LOG.warn("Seems encountered server error. Maybe JPush is in maintenance? Please retry later.");
155155
break;
156156
default:
157-
LOG.error("Unexpected response.");
157+
LOG.warn("Unexpected response.");
158158
}
159159
}
160160
LOG.warn("Got error response - response: " + response.body().string());

src/main/java/cn/jiguang/common/connection/NativeHttpClient.java

+8-8
Original file line numberDiff line numberDiff line change
@@ -201,32 +201,32 @@ private ResponseWrapper _doRequest(String url, String content,
201201
wrapper.setErrorObject();
202202
break;
203203
case 401:
204-
LOG.error("Authentication failed! Please check authentication params according to docs.");
204+
LOG.warn("Authentication failed! Please check authentication params according to docs.");
205205
wrapper.setErrorObject();
206206
break;
207207
case 403:
208-
LOG.error("Request is forbidden! Maybe your appkey is listed in blacklist or your params is invalid.");
208+
LOG.warn("Request is forbidden! Maybe your appkey is listed in blacklist or your params is invalid.");
209209
wrapper.setErrorObject();
210210
break;
211211
case 404:
212-
LOG.error("Request page is not found! Maybe your params is invalid.");
212+
LOG.warn("Request page is not found! Maybe your params is invalid.");
213213
wrapper.setErrorObject();
214214
break;
215215
case 410:
216-
LOG.error("Request resource is no longer in service. Please according to notice on official website.");
216+
LOG.warn("Request resource is no longer in service. Please according to notice on official website.");
217217
wrapper.setErrorObject();
218218
case 429:
219-
LOG.error("Too many requests! Please review your appkey's request quota.");
219+
LOG.warn("Too many requests! Please review your appkey's request quota.");
220220
wrapper.setErrorObject();
221221
break;
222222
case 500:
223223
case 502:
224224
case 503:
225225
case 504:
226-
LOG.error("Seems encountered server error. Maybe JPush is in maintenance? Please retry later.");
226+
LOG.warn("Seems encountered server error. Maybe JPush is in maintenance? Please retry later.");
227227
break;
228228
default:
229-
LOG.error("Unexpected response.");
229+
LOG.warn("Unexpected response.");
230230
}
231231

232232
throw new APIRequestException(wrapper);
@@ -250,7 +250,7 @@ private ResponseWrapper _doRequest(String url, String content,
250250
try {
251251
out.close();
252252
} catch (IOException e) {
253-
LOG.error("Failed to close stream.", e);
253+
LOG.warn("Failed to close stream.", e);
254254
}
255255
}
256256
if (null != conn) {

src/main/java/cn/jiguang/common/connection/NettyHttpClient.java

+7-7
Original file line numberDiff line numberDiff line change
@@ -208,32 +208,32 @@ private ResponseWrapper sendHttpRequest(HttpMethod method, String url, String bo
208208
wrapper.setErrorObject();
209209
break;
210210
case 401:
211-
LOG.error("Authentication failed! Please check authentication params according to docs.");
211+
LOG.warn("Authentication failed! Please check authentication params according to docs.");
212212
wrapper.setErrorObject();
213213
break;
214214
case 403:
215-
LOG.error("Request is forbidden! Maybe your appkey is listed in blacklist or your params is invalid.");
215+
LOG.warn("Request is forbidden! Maybe your appkey is listed in blacklist or your params is invalid.");
216216
wrapper.setErrorObject();
217217
break;
218218
case 404:
219-
LOG.error("Request page is not found! Maybe your params is invalid.");
219+
LOG.warn("Request page is not found! Maybe your params is invalid.");
220220
wrapper.setErrorObject();
221221
break;
222222
case 410:
223-
LOG.error("Request resource is no longer in service. Please according to notice on official website.");
223+
LOG.warn("Request resource is no longer in service. Please according to notice on official website.");
224224
wrapper.setErrorObject();
225225
case 429:
226-
LOG.error("Too many requests! Please review your appkey's request quota.");
226+
LOG.warn("Too many requests! Please review your appkey's request quota.");
227227
wrapper.setErrorObject();
228228
break;
229229
case 500:
230230
case 502:
231231
case 503:
232232
case 504:
233-
LOG.error("Seems encountered server error. Maybe JPush is in maintenance? Please retry later.");
233+
LOG.warn("Seems encountered server error. Maybe JPush is in maintenance? Please retry later.");
234234
break;
235235
default:
236-
LOG.error("Unexpected response.");
236+
LOG.warn("Unexpected response.");
237237
}
238238
throw new APIRequestException(wrapper);
239239
}

0 commit comments

Comments
 (0)