@Override
public void fetchResults(Map<String, String> params, SvcLogicContext ctx) throws SvcLogicException {
int code = STATUS_OK;
+ final String LOG_STR = "fetchResults";
try {
chefInfo(params, ctx);
String nodeListS = params.get(NODE_LIST_STR);
}
} catch (JSONException e) {
code = APPC_ERRORCODE;
- logger.error(POSTING_REQUEST_JSON_ERROR_STR + "fetchResults", e);
- doFailure(ctx, code, POSTING_REQUEST_JSON_ERROR_STR + "fetchResults" + e.getMessage());
+ logger.error(POSTING_REQUEST_JSON_ERROR_STR + LOG_STR, e);
+ doFailure(ctx, code, POSTING_REQUEST_JSON_ERROR_STR + LOG_STR + e.getMessage());
} catch (Exception e) {
code = APPC_ERRORCODE;
- logger.error(POSTING_REQUEST_ERROR_STR + "fetchResults", e);
- doFailure(ctx, code, POSTING_REQUEST_ERROR_STR + "fetchResults" + e.getMessage());
+ logger.error(POSTING_REQUEST_ERROR_STR + LOG_STR, e);
+ doFailure(ctx, code, POSTING_REQUEST_ERROR_STR + LOG_STR + e.getMessage());
}
}