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

Loading…
Cancel
Save