Additional log details for http client in GitHubService
@@ -7,6 +7,7 @@ import com.checkmarx.flow.dto.ScanRequest;
import com.checkmarx.flow.exception.GitHubClientException;
import com.checkmarx.flow.utils.ScanUtils;
import com.checkmarx.sdk.dto.ScanResults;
+import org.apache.commons.lang3.exception.ExceptionUtils;
import org.json.JSONObject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -51,7 +52,7 @@ public class GitHubService {
log.debug("comment: {}", comment);
sendMergeComment(request, comment);
} catch (HttpClientErrorException e){
- log.error("Error occurred while creating Merge Request comment");
+ log.error("Error occurred while creating Merge Request comment: {}", ExceptionUtils.getRootCauseMessage(e));
throw new GitHubClientException();
}
}
