master
Yixian 3 years ago
parent 6350b5e4c7
commit 17b012fd42

@ -2700,6 +2700,7 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
public void writeAggregatePoster(JSONObject manager, String clientMoniker, OutputStream ous) {
JSONObject client = clientDetail(manager, clientMoniker);
try {
logger.debug("downloading aggregate poster from {}", clientMoniker);
HttpRequestResult boardBackgroundResult = new HttpRequestGenerator(
PlatformEnvironment.getEnv().concatUrl("/static/images/new_aggregate_poster.png"), RequestMethod.GET).execute();
if (boardBackgroundResult.isSuccess()) {
@ -2710,10 +2711,11 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
ous.flush();
IOUtils.closeQuietly(ous);
} else {
logger.error("get aggregate poster file failed:[{}]", boardBackgroundResult.getStatusCode(),
logger.error("get aggregate poster file failed:[{}]-{}", boardBackgroundResult.getStatusCode(),
boardBackgroundResult.getResponseContentString(), boardBackgroundResult.getException());
}
} catch (IOException e) {
logger.error("get aggregate poster file failed:{}", e.getMessage(), e);
throw new ServerErrorException("Error", e);
}
}

Loading…
Cancel
Save